r18455 by jghali - #11725: Double frames around the object after rotation

scribus-commit scribus-commit at lists.scribus.net
Tue Sep 3 22:48:40 UTC 2013


Author: jghali
Date: Tue Sep  3 22:48:40 2013
New Revision: 18455

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18455
Log:
#11725: Double frames around the object after rotation

Modified:
    branches/Version14x/Scribus/scribus/canvasmode.cpp

Modified: branches/Version14x/Scribus/scribus/canvasmode.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18455&path=/branches/Version14x/Scribus/scribus/canvasmode.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/canvasmode.cpp (original)
+++ branches/Version14x/Scribus/scribus/canvasmode.cpp Tue Sep  3 22:48:40 2013
@@ -248,8 +248,8 @@
 					psx->setRenderHint(QPainter::Antialiasing);
 					psx->translate(currItem->xPos(), currItem->yPos());
 					psx->rotate(currItem->rotation());
-					x = currItem->asLine() ? 0 : (currItem->lineWidth() / -2.0);
-					y = currItem->asLine() ? (h / -2.0) : (currItem->lineWidth() / -2.0);
+					x = currItem->asLine() ? 0 : (currItem->visualXPos() - currItem->xPos() - lineAdjust);
+					y = currItem->asLine() ? (h / -2.0) : (currItem->visualYPos() - currItem->yPos() - lineAdjust);
 				}
 				else
 				{
@@ -292,8 +292,8 @@
 				psx->setRenderHint(QPainter::Antialiasing);
 				psx->translate(currItem->xPos(), currItem->yPos());
 				psx->rotate(currItem->rotation());
-				x = currItem->asLine() ? 0 : (currItem->lineWidth() / -2.0);
-				y = currItem->asLine() ? (h / -2.0) : (currItem->lineWidth( ) / -2.0);
+				x = currItem->asLine() ? 0 : (currItem->visualXPos() - currItem->xPos() - lineAdjust);
+				y = currItem->asLine() ? (h / -2.0) : (currItem->visualYPos() - currItem->yPos() - lineAdjust);
 			}
 			else
 			{




More information about the scribus-commit mailing list