r15405 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:12 CEST 2010


Author: jghali
Date: Sun Aug  8 19:06:11 2010
New Revision: 15405

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

Modified:
    branches/Version135/Scribus/scribus/text/storytext.cpp

Modified: branches/Version135/Scribus/scribus/text/storytext.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15405&path=/branches/Version135/Scribus/scribus/text/storytext.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/text/storytext.cpp (original)
+++ branches/Version135/Scribus/scribus/text/storytext.cpp Sun Aug  8 19:06:11 2010
@@ -1298,7 +1298,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