r18768 by fschmid - Fixed Bug #12010: When moving items, the bounding box is drawn to large

scribus-commit scribus-commit at lists.scribus.net
Fri Jan 24 18:53:32 UTC 2014


Author: fschmid
Date: Fri Jan 24 18:53:32 2014
New Revision: 18768

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18768
Log:
Fixed Bug #12010: When moving items, the bounding box is drawn to large

Modified:
    trunk/Scribus/scribus/canvasmode.cpp

Modified: trunk/Scribus/scribus/canvasmode.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18768&path=/trunk/Scribus/scribus/canvasmode.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode.cpp (original)
+++ trunk/Scribus/scribus/canvasmode.cpp Fri Jan 24 18:53:32 2014
@@ -558,6 +558,7 @@
 						p->rotate(currItem->rotation());
 					}
 					p->scale(scalex, scaley);
+					p->drawRect(QRectF(0.0, 0.0, currItem->visualWidth(), currItem->visualHeight()));
 					PageItem_Group* gItem = currItem->asGroupFrame();
 					uint itemCountG = gItem->groupItemList.count();
 					if (itemCountG < m_canvas->moveWithFullOutlinesThreshold)
@@ -591,7 +592,7 @@
 						p->rotate(currItem->rotation());
 					}
 					p->scale(scalex, scaley);
-					p->drawRect(QRectF(0.0, 0.0, currItem->visualWidth()+1.0, currItem->visualHeight()+1.0));
+					p->drawRect(QRectF(0.0, 0.0, currItem->visualWidth(), currItem->visualHeight()));
 					p->restore();
 
 					p->save();
@@ -679,7 +680,7 @@
 								p->rotate(currItem->rotation());
 							}
 							p->scale(scalex, scaley);
-							p->drawRect(QRectF(0.0, 0.0, currItem->visualWidth()+1.0, currItem->visualHeight()+1.0));
+							p->drawRect(QRectF(0.0, 0.0, currItem->visualWidth(), currItem->visualHeight()));
 							p->restore();
 							p->save();
 							p->setBrush(m_brush["outline"]);
@@ -708,7 +709,7 @@
 						p->setRenderHint(QPainter::Antialiasing);
 						p->rotate(currItem->rotation());
 					}
-					p->drawRect(QRectF(0.0, 0.0, currItem->width()+1.0, currItem->height()+1.0));
+					p->drawRect(QRectF(0.0, 0.0, currItem->visualWidth(), currItem->visualHeight()));
 				}
 				p->restore();
 			}




More information about the scribus-commit mailing list