r16076 by pierremarc - Fixed selection rectangle in RTL context

scribus-commit scribus-commit at lists.scribus.net
Mon Dec 6 17:12:52 CET 2010


Author: pierremarc
Date: Mon Dec  6 16:12:52 2010
New Revision: 16076

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16076
Log:
Fixed selection rectangle in RTL context

Modified:
    branches/ScribusOIF/scribus/text/boxes.cpp

Modified: branches/ScribusOIF/scribus/text/boxes.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16076&path=/branches/ScribusOIF/scribus/text/boxes.cpp
==============================================================================
--- branches/ScribusOIF/scribus/text/boxes.cpp (original)
+++ branches/ScribusOIF/scribus/text/boxes.cpp Mon Dec  6 16:12:52 2010
@@ -482,7 +482,7 @@
 		double selX(0);
 		double selWidth(m_glyphs->itemWidth(m_item, selStart, selEnd - selStart + 1));
 		if(rtl)
-			selX = m_width - selWidth;
+			selX =  -selWidth;
 		if(selStart != m_charStart)
 		{
 			if(rtl)




More information about the scribus-commit mailing list