r17432 by jghali - fix msvc runtime check failure caused by variable being used before being initialized

scribus-commit scribus-commit at lists.scribus.net
Wed Apr 11 22:45:21 UTC 2012


Author: jghali
Date: Wed Apr 11 22:45:21 2012
New Revision: 17432

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17432
Log:
fix msvc runtime check failure caused by variable being used before being initialized

Modified:
    trunk/Scribus/scribus/canvasmode.cpp

Modified: trunk/Scribus/scribus/canvasmode.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17432&path=/trunk/Scribus/scribus/canvasmode.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode.cpp (original)
+++ trunk/Scribus/scribus/canvasmode.cpp Wed Apr 11 22:45:21 2012
@@ -378,6 +378,8 @@
 			}
 			else
 			{
+				w = currItem->visualWidth();
+				h = currItem->visualHeight();
 				if (currItem->rotation() != 0)
 				{
 					psx->setRenderHint(QPainter::Antialiasing);
@@ -392,8 +394,6 @@
 					x = currItem->asLine() ? 0 : -lineAdjust;
 					y = currItem->asLine() ? 0 : -lineAdjust;
 				}
-				w = currItem->visualWidth();
-				h = currItem->visualHeight();
 				psx->setBrush(Qt::NoBrush);
 				psx->setPen(ba);
 				psx->drawRect(QRectF(x, y, w, h));




More information about the scribus-commit mailing list