r17182 by jghali - #10484: Align Text Right doesn't work in some situations
scribus-commit
scribus-commit at lists.scribus.net
Thu Jan 5 21:49:14 UTC 2012
Author: jghali
Date: Thu Jan 5 21:49:14 2012
New Revision: 17182
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17182
Log:
#10484: Align Text Right doesn't work in some situations
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=17182&path=/branches/Version14x/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/pageitem_textframe.cpp (original)
+++ branches/Version14x/Scribus/scribus/pageitem_textframe.cpp Thu Jan 5 21:49:14 2012
@@ -2301,6 +2301,7 @@
}
else
maxYAsc = static_cast<int>(floor(current.yPos - qMax(realAsce, asce)));
+ maxYAsc = qMax(maxYAsc, 0);
maxYDesc = static_cast<int>(ceil(current.yPos + qMax(realDesc, desc)));
EndX = current.endOfLine(cl, style.rightMargin(), maxYAsc, maxYDesc);
More information about the scribus-commit
mailing list