r16538 by craig - #9886: Fix crash for oversized text, but lose cursor on empty frame :(
scribus-commit
scribus-commit at lists.scribus.net
Mon Mar 28 18:16:14 CEST 2011
Author: craig
Date: Mon Mar 28 16:16:14 2011
New Revision: 16538
URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16538
Log:
#9886: Fix crash for oversized text, but lose cursor on empty frame :(
Modified:
branches/Version135/Scribus/scribus/canvasmode_edit.cpp
Modified: branches/Version135/Scribus/scribus/canvasmode_edit.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16538&path=/branches/Version135/Scribus/scribus/canvasmode_edit.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/canvasmode_edit.cpp (original)
+++ branches/Version135/Scribus/scribus/canvasmode_edit.cpp Mon Mar 28 16:16:14 2011
@@ -172,8 +172,9 @@
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
-// if(textframe->lastInFrame() < 0)
-// return;
+// 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() )
)
More information about the scribus-commit
mailing list