Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 16833 → Rev 16834

/trunk/Scribus/scribus/canvasmode_edit.cpp
205,10 → 205,6
 
void CanvasMode_Edit::drawTextCursor ( QPainter *p, PageItem_TextFrame* textframe )
{
//CB: If we have this test in we get no initial cursor placed for a new text frame
// but if we do, we crash when we resize.. #9886
if(textframe->lastInFrame() < 0)
return;
if ((!m_longCursorTime && m_blinkTime.elapsed() > qApp->cursorFlashTime() / 2 ) ||
(m_longCursorTime && m_blinkTime.elapsed() > qApp->cursorFlashTime() )
)
257,7 → 253,7
{
// Happens often when typing directly into frame.
// And the cursor curses nothing, vertigo.
textCursorPos = textframe->lastInFrame();
textCursorPos = qMax(0, textframe->lastInFrame());
QChar textCursorChar = textframe->itemText.text(textCursorPos);
if (textCursorChar == SpecialChars::PARSEP || textCursorChar == SpecialChars::LINEBREAK)
{