Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 13615 → Rev 13617

/branches/Version135/Scribus/scribus/canvasmode_edit.cpp
391,6 → 391,8
}
if (currItem->asTextFrame())
{
int refStartSel(currItem->asTextFrame()->itemText.startOfSelection());
int refEndSel(currItem->asTextFrame()->itemText.endOfSelection());
currItem->itemText.deselectAll();
currItem->HasSel = false;
m_view->slotSetCurs(m->globalPos().x(), m->globalPos().y());
408,15 → 410,21
currItem->HasSel = true;
}
}
// currItem->update();
 
if(currItem->HasSel)
{
m_ScMW->EnableTxEdit();
m_canvas->m_viewMode.operTextSelecting = true;
if((refStartSel != currItem->asTextFrame()->itemText.startOfSelection())
|| (refEndSel != currItem->asTextFrame()->itemText.endOfSelection()))
{
QRectF br(currItem->getBoundingRect());
m_canvas->update(QRectF(m_canvas->canvasToLocal(br.topLeft()), br.size() * m_canvas->scale()).toRect());
}
}
else
m_ScMW->DisableTxEdit();
m_canvas->update();
 
}
}
//Operations run here:
997,6 → 1005,9
m_view->requestMode(modeNormal);
return;
}
else
currItem->asTextFrame()->deselectAll();
 
if (m->button() != Qt::RightButton)
{
//<<CB Add in shift select to text frames