r21142 by fschmid -
scribus-commit
scribus-commit at lists.scribus.net
Thu Mar 31 18:37:17 UTC 2016
Author: fschmid
Date: Thu Mar 31 18:37:17 2016
New Revision: 21142
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21142
Log:
Applied patch from Bug #13869
Modified:
trunk/Scribus/scribus/pageitem_textframe.cpp
Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21142&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp (original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp Thu Mar 31 18:37:17 2016
@@ -1783,7 +1783,7 @@
chsd = (10 * ((DropCapDrop + fontAscent) / realCharHeight));
chs = (10 * ((DropCapDrop + fontAscent) / realCharAscent));
glyphRuns[i].setFlag(ScLayout_DropCap);
- glyphRuns[i].glyphs().first().yoffset += DropCapDrop;
+// glyphRuns[i].glyphs().first().yoffset += DropCapDrop;
if (HasObject)
{
chs = qRound((currentObject->height() + currentObject->lineWidth()) * 10);
@@ -2207,8 +2207,8 @@
}
current.line.x = current.restartX = current.xPos;
current.line.y = current.yPos;
- if (glyphRuns[current.line.firstRun].hasFlag(ScLayout_DropCap))
- current.line.y -= DropCapDrop;
+// if (glyphRuns[current.line.firstRun].hasFlag(ScLayout_DropCap))
+// current.line.y -= DropCapDrop;
}
//check if line must start at new Y position due to current glyph height or previous line descent
@@ -2838,7 +2838,8 @@
{
if (current.addLine && current.breakIndex >= 0)
{
- if (glyphRuns[current.line.firstRun].style().effects() & ScLayout_DropCap)
+// if (glyphRuns[current.line.firstRun].style().effects() & ScLayout_DropCap)
+ if (glyphRuns[current.line.firstRun].hasFlag(ScLayout_DropCap))
{
// put line back to top
current.line.y -= DropCapDrop;
@@ -3041,7 +3042,8 @@
current.line.naturalWidth += opticalRightMargin(itemText, glyphRuns, current.line);
indentLine(style, current, OFs);
}
- if (glyphRuns[current.line.firstRun].style().effects() & ScLayout_DropCap)
+// if (glyphRuns[current.line.firstRun].style().effects() & ScLayout_DropCap)
+ if (glyphRuns[current.line.firstRun].hasFlag(ScLayout_DropCap))
{
// put line back to top
current.line.y -= DropCapDrop;
More information about the scribus-commit
mailing list