r16539 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:17:58 CEST 2011


Author: craig
Date: Mon Mar 28 16:17:58 2011
New Revision: 16539

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16539
Log:
#9886: Fix crash for oversized text, but lose cursor on empty frame :( 

Modified:
    trunk/Scribus/scribus/canvasmode_edit.cpp

Modified: trunk/Scribus/scribus/canvasmode_edit.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16539&path=/trunk/Scribus/scribus/canvasmode_edit.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_edit.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_edit.cpp Mon Mar 28 16:17:58 2011
@@ -205,9 +205,10 @@
 
 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;
+	//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() )
 		)




More information about the scribus-commit mailing list