r16687 by jghali - #10062: Deleting last text character causes crash

scribus-commit scribus-commit at lists.scribus.net
Tue Jun 21 05:12:54 UTC 2011


Author: jghali
Date: Tue Jun 21 05:12:53 2011
New Revision: 16687

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=16687
Log:
#10062: Deleting last text character causes crash

Modified:
    trunk/Scribus/scribus/pageitem_textframe.cpp

Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16687&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp (original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp Tue Jun 21 05:12:53 2011
@@ -3176,7 +3176,7 @@
 			keyRepeat = false;
 			return;
 		}
-		cr = itemText.text(1);
+		cr = itemText.text();
 		if (itemText.lengthOfSelection() == 0)
 			itemText.select(itemText.cursorPosition(), 1, true);
 		deleteSelectedTextFromFrame();




More information about the scribus-commit mailing list