r23985 by jghali - Fix issue where current item section of horizontal ruler would be drawn with a different color than the rest of it

scribus-commit scribus-commit at lists.scribus.net
Mon Aug 17 11:09:41 UTC 2020


Author: jghali
Date: Mon Aug 17 11:09:41 2020
New Revision: 23985

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23985
Log:
Fix issue where current item section of horizontal ruler would be drawn with a different color than the rest of it

Modified:
    trunk/Scribus/scribus/ui/hruler.cpp

Modified: trunk/Scribus/scribus/ui/hruler.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23985&path=/trunk/Scribus/scribus/ui/hruler.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/hruler.cpp	(original)
+++ trunk/Scribus/scribus/ui/hruler.cpp	Mon Aug 17 11:09:41 2020
@@ -465,7 +465,7 @@
 		int rectX2 = textPosToLocal(m_itemEndPos - m_itemPos - m_distRight);
 		const QPalette& palette = this->palette();
 		const QColor& textColor = palette.color(QPalette::Text);
-		p.eraseRect(QRect(QPoint(rectX1, 1), QPoint(rectX2, 15)));
+		p.fillRect(QRect(QPoint(rectX1, 1), QPoint(rectX2, 15)), palette.window());
 		p.drawLine(rectX1, 16, rectX2, 16);
 		p.save();
 		p.setRenderHints(QPainter::Antialiasing, true);




More information about the scribus-commit mailing list