r17714 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:03 UTC 2012


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

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

Modified:
    branches/Version14x/Scribus/scribus/pageitem_textframe.cpp

Modified: branches/Version14x/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17714&path=/branches/Version14x/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/pageitem_textframe.cpp (original)
+++ branches/Version14x/Scribus/scribus/pageitem_textframe.cpp Sat Jul 14 12:03:03 2012
@@ -3100,7 +3100,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