r23335 by jghali - #15918: unused variable visualHeight and visualWidth

scribus-commit scribus-commit at lists.scribus.net
Wed Nov 6 00:04:12 UTC 2019


Author: jghali
Date: Wed Nov  6 00:04:11 2019
New Revision: 23335

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23335
Log:
#15918: unused variable visualHeight and visualWidth

Modified:
    trunk/Scribus/scribus/canvasmode.cpp

Modified: trunk/Scribus/scribus/canvasmode.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23335&path=/trunk/Scribus/scribus/canvasmode.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode.cpp	Wed Nov  6 00:04:11 2019
@@ -637,9 +637,9 @@
 						if (matRot != 0)
 							p->setRenderHint(QPainter::Antialiasing);
 						if (currItem->isLine())
-							p->drawRect(QRectF(0.0, -visualLineWidth / 2.0, currItem->visualWidth(), currItem->visualHeight()));
+							p->drawRect(QRectF(0.0, -visualLineWidth / 2.0, visualWidth, visualHeight));
 						else
-							p->drawRect(QRectF(-visualLineWidth / 2.0, -visualLineWidth / 2.0, currItem->visualWidth(), currItem->visualHeight()));
+							p->drawRect(QRectF(-visualLineWidth / 2.0, -visualLineWidth / 2.0, visualWidth, visualHeight));
 						p->restore();
 
 						p->save();
@@ -660,9 +660,9 @@
 					if (matRot != 0)
 						p->setRenderHint(QPainter::Antialiasing);
 					if (currItem->isLine())
-						p->drawRect(QRectF(0.0, -visualLineWidth / 2.0, currItem->visualWidth(), currItem->visualHeight()));
+						p->drawRect(QRectF(0.0, -visualLineWidth / 2.0, visualWidth, visualHeight));
 					else
-						p->drawRect(QRectF(-visualLineWidth / 2.0, -visualLineWidth / 2.0, currItem->visualWidth(), currItem->visualHeight()));
+						p->drawRect(QRectF(-visualLineWidth / 2.0, -visualLineWidth / 2.0, visualWidth, visualHeight));
 				}
 				p->restore();
 			}




More information about the scribus-commit mailing list