r15406 by jghali - makes selection of last character in frame a bit more easy

scribus-commit scribus-commit at lists.scribus.net
Sun Aug 8 21:06:41 CEST 2010


Author: jghali
Date: Sun Aug  8 19:06:41 2010
New Revision: 15406

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15406
Log:
makes selection of last character in frame a bit more easy

Modified:
    trunk/Scribus/scribus/text/storytext.cpp

Modified: trunk/Scribus/scribus/text/storytext.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15406&path=/trunk/Scribus/scribus/text/storytext.cpp
==============================================================================
--- trunk/Scribus/scribus/text/storytext.cpp (original)
+++ trunk/Scribus/scribus/text/storytext.cpp Sun Aug  8 19:06:41 2010
@@ -1297,7 +1297,7 @@
 		if (xpos + 1.0 > coord.x()) // allow 1pt after end of line
 			return ls.lastItem + 1;
 		else if (coord.x() <= ls.x + ls.width) // last line of paragraph?
-			return ls.lastItem;
+			return ((ls.lastItem == lastFrameItem) ? (ls.lastItem + 1) : ls.lastItem);
 		else if (xpos < ls.x + 0.01 && maxx >= coord.x()) // check for empty line
 			return ls.firstItem;
 	}




More information about the scribus-commit mailing list