r16913 by jghali - commit patch from cezare to fix a regression related to #10251

scribus-commit scribus-commit at lists.scribus.net
Mon Oct 17 20:12:09 UTC 2011


Author: jghali
Date: Mon Oct 17 20:12:09 2011
New Revision: 16913

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=16913
Log:
commit patch from cezare to fix a regression related to #10251

Modified:
    trunk/Scribus/scribus/pageitem_textframe.cpp

Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16913&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp (original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp Mon Oct 17 20:12:09 2011
@@ -1550,6 +1550,8 @@
 			}
 			else
 				maxYAsc = static_cast<int>(floor(current.yPos - qMax(realAsce, asce)));
+			//fix for glyphs with negative realAsce value
+			maxYAsc = qMax(maxYAsc, 0);
 			maxYDesc = static_cast<int>(ceil(current.yPos + qMax(realDesc, desc)));
 
 			if (current.itemsInLine == 0 && !current.afterOverflow)




More information about the scribus-commit mailing list