r23449 by jghali - #16034: First line indent doesn't work for single line RTL paragraph

scribus-commit scribus-commit at lists.scribus.net
Mon Jan 20 21:15:05 UTC 2020


Author: jghali
Date: Mon Jan 20 21:15:04 2020
New Revision: 23449

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23449
Log:
#16034: First line indent doesn't work for single line RTL paragraph

Modified:
    trunk/Scribus/scribus/pageitem_textframe.cpp

Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23449&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp	(original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp	Mon Jan 20 21:15:04 2020
@@ -2477,7 +2477,7 @@
 					regionMinY = qMax(0.0, current.lineData.y - current.lineData.ascent);
 					regionMaxY = current.lineData.y + current.lineData.descent;
 					EndX = current.endOfLine(m_availableRegion, style.rightMargin(), regionMinY, regionMaxY);
-					current.finishLine(EndX);
+					current.finishLine(EndX - current.rightIndent);
 					//addLine = true;
 					assert(current.addLine);
 					//current.startOfCol = false;
@@ -2848,7 +2848,7 @@
 			}
 
 			EndX = current.endOfLine(m_availableRegion, style.rightMargin(), regionMinY, regionMaxY);
-			current.finishLine(EndX);
+			current.finishLine(EndX - current.rightIndent);
 
 			if (opticalMargins & ParagraphStyle::OM_RightHangingPunct)
 				current.lineData.width += current.opticalRightMargin(itemText);




More information about the scribus-commit mailing list