r23918 by jghali - Fix drawing of text selection for embedded objects
scribus-commit
scribus-commit at lists.scribus.net
Wed Jul 15 21:16:39 UTC 2020
Author: jghali
Date: Wed Jul 15 21:16:39 2020
New Revision: 23918
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23918
Log:
Fix drawing of text selection for embedded objects
Modified:
trunk/Scribus/scribus/text/boxes.cpp
Modified: trunk/Scribus/scribus/text/boxes.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23918&path=/trunk/Scribus/scribus/text/boxes.cpp
==============================================================================
--- trunk/Scribus/scribus/text/boxes.cpp (original)
+++ trunk/Scribus/scribus/text/boxes.cpp Wed Jul 15 21:16:39 2020
@@ -245,8 +245,11 @@
void LineBox::drawSelection(ScreenPainter *p, ITextContext *ctx) const
{
+ p->save();
+ p->translate(0, ascent());
for (const Box *box : boxes())
box->drawSelection(p, ctx);
+ p->restore();
}
void LineBox::drawBackGround(TextLayoutPainter *p) const
@@ -565,7 +568,7 @@
}
}
- QRectF rect(x(), 0, width(), height());
+ QRectF rect(x(), -ascent(), width(), height());
p->setSelected(true);
p->setStrokeWidth(0);
More information about the scribus-commit
mailing list