r17715 by jghali - #10879: End key not working when carret is before last char in frame

scribus-commit scribus-commit at lists.scribus.net
Sat Jul 14 12:03:29 UTC 2012


Author: jghali
Date: Sat Jul 14 12:03:29 2012
New Revision: 17715

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17715
Log:
#10879: End key not working when carret is before last char in frame

Modified:
    trunk/Scribus/scribus/pageitem_textframe.cpp

Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17715&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp (original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp Sat Jul 14 12:03:29 2012
@@ -3485,7 +3485,7 @@
 	case Qt::Key_End:
 		// go to end of line
 		len = lastInFrame();
-		if ( itemText.cursorPosition() >= len )
+		if ( itemText.cursorPosition() >= (len + 1))
 			break; // at end of frame
 		if ( (buttonModifiers & Qt::ControlModifier) == 0 )
 		{




More information about the scribus-commit mailing list