r18526 by jghali - fix another potential operator priority issue

scribus-commit scribus-commit at lists.scribus.net
Fri Oct 4 20:47:16 UTC 2013


Author: jghali
Date: Fri Oct  4 20:47:16 2013
New Revision: 18526

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18526
Log:
fix another potential operator priority issue

Modified:
    trunk/Scribus/scribus/pageitem_textframe.cpp

Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18526&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp (original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp Fri Oct  4 20:47:16 2013
@@ -842,7 +842,7 @@
 				asce = (itemText.object(line.firstItem+zc)->height() + itemText.object(line.firstItem+zc)->lineWidth()) * scaleV + offset;
 				desc = 0.0;
 			}
-			else //if (itemText.charStyle(current.line.firstItem+zc).effects() & ScLayout_DropCap == 0)
+			else //if ((itemText.charStyle(current.line.firstItem+zc).effects() & ScLayout_DropCap) == 0)
 			{
 				asce = cStyle.font().realCharAscent(ch, cStyle.fontSize() / 10.0) * scaleV + offset;
 				desc = cStyle.font().realCharDescent(ch, cStyle.fontSize() / 10.0) * scaleV - offset;




More information about the scribus-commit mailing list