r14945 by fschmid - Fixed Bug #8976: "image frame's edit mark should be in the middle of the actual image size"

scribus-commit scribus-commit at lists.scribus.net
Sun Mar 28 20:40:18 CEST 2010


Revision: 14945
Author: fschmid
Date: 2010-03-28T18:33:56.921180Z
Commit message: Fixed Bug #8976: "image frame's edit mark should be in the middle of the actual image size"

Changeset: 
M  /trunk/Scribus/scribus/canvasmode_edit.cpp

Diffs:
Index: scribus/canvasmode_edit.cpp
===================================================================
--- scribus/canvasmode_edit.cpp	(revision 14944)
+++ scribus/canvasmode_edit.cpp	(revision 14945)
@@ -117,8 +117,8 @@
 			}
 			p->translate(currItem->imageXOffset()*currItem->imageXScale(), currItem->imageYOffset()*currItem->imageYScale());
 			p->rotate(currItem->imageRotation());
-			p->drawRect(0, 0, currItem->pixm.qImagePtr()->width(), currItem->pixm.qImagePtr()->height());
-			p->translate(currItem->pixm.qImagePtr()->width() / 2, currItem->pixm.qImagePtr()->height() / 2);
+			p->drawRect(0, 0, currItem->OrigW*currItem->imageXScale(), currItem->OrigH*currItem->imageYScale());
+			p->translate(currItem->OrigW*currItem->imageXScale() / 2, currItem->OrigH*currItem->imageYScale() / 2);
 			p->scale(1.0 / m_canvas->scale(), 1.0 / m_canvas->scale());
 			p->setPen(QPen(Qt::blue, 1.0, Qt::SolidLine, Qt::FlatCap, Qt::MiterJoin));
 			p->drawLine(-10, 0, 10, 0);




More information about the scribus-commit mailing list