r17140 by jghali - #10445 : Drop cap styled paragraph displays incorrectly at the top of linked text frame

scribus-commit scribus-commit at lists.scribus.net
Thu Dec 29 00:43:12 UTC 2011


Author: jghali
Date: Thu Dec 29 00:43:12 2011
New Revision: 17140

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17140
Log:
#10445 : Drop cap styled paragraph displays incorrectly at the top of linked text frame

Modified:
    trunk/Scribus/scribus/pageitem_textframe.cpp

Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17140&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp (original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp Thu Dec 29 00:43:12 2011
@@ -1520,6 +1520,8 @@
 			// find charsize factors
 			if (DropCmode)
 			{
+				DropCapDrop = calculateLineSpacing (style, this) * (DropLines - 1);
+
 				// FIXME : we should ensure that fonts are loaded before calls to layout()
 				// ScFace::realCharHeight()/Ascent() ensure font is loaded thanks to an indirect call to char2CMap()
 				// ScFace::ascent() can be called safely afterwards




More information about the scribus-commit mailing list