r22410 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Sun Feb 25 14:03:39 UTC 2018
Author: jghali
Date: Sun Feb 25 14:03:39 2018
New Revision: 22410
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22410
Log:
#15168: Paragraph background color doesn't follow vertical alignment
Modified:
trunk/Scribus/scribus/text/textlayout.cpp
Modified: trunk/Scribus/scribus/text/textlayout.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22410&path=/trunk/Scribus/scribus/text/textlayout.cpp
==============================================================================
--- trunk/Scribus/scribus/text/textlayout.cpp (original)
+++ trunk/Scribus/scribus/text/textlayout.cpp Sun Feb 25 14:03:39 2018
@@ -124,6 +124,9 @@
double backShade, lastShade = 100;
QRectF lastRect;
+ p->save();
+ p->translate(m_box->x(), m_box->y());
+
foreach (const Box* column, m_box->boxes())
{
const QList<const Box*>& lineBoxes = column->boxes();
@@ -175,6 +178,8 @@
lastShade = 100;
lastRect = QRectF();
}
+
+ p->restore();
}
void TextLayout::render(TextLayoutPainter *p)
More information about the scribus-commit
mailing list