r13807 by pierre - Help at maintaining correct geometry informations in PageItem

scribus-commit scribus-commit at lists.scribus.net
Mon Aug 3 11:30:14 CEST 2009


Revision: 13807
Author: pierre
Date: 2009-08-03T09:30:14.226087Z
Commit message: Help at maintaining correct geometry informations in PageItem

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

Diffs:
Index: scribus/pageitem.cpp
===================================================================
--- scribus/pageitem.cpp	(revision 13806)
+++ scribus/pageitem.cpp	(revision 13807)
@@ -532,6 +532,7 @@
 	if (drawingOnly || m_Doc->isLoading())
 		return;
 	checkChanges();
+	updateClip();
 	emit position(Xpos, Ypos);
 }
 
@@ -541,6 +542,7 @@
 	if (drawingOnly || m_Doc->isLoading())
 		return;
 	checkChanges();
+	updateClip();
 	emit position(Xpos, Ypos);
 }
 
@@ -551,6 +553,7 @@
 	if (drawingOnly || m_Doc->isLoading())
 		return;
 	checkChanges();
+	updateClip();
 	emit position(Xpos, Ypos);
 }
 
@@ -566,6 +569,7 @@
 	if (drawingOnly || m_Doc->isLoading())
 		return;
 	checkChanges();
+	updateClip();
 	emit position(Xpos, Ypos);
 }
 
@@ -574,6 +578,7 @@
 	Width = newWidth;
 	updateConstants();
 	checkChanges();
+	updateClip();
 	emit widthAndHeight(Width, Height);
 }
 
@@ -582,6 +587,7 @@
 	Height = newHeight;
 	updateConstants();
 	checkChanges();
+	updateClip();
 	emit widthAndHeight(Width, Height);
 }
 
@@ -593,6 +599,7 @@
 	if (drawingOnly)
 		return;
 	checkChanges();
+	updateClip();
 	emit widthAndHeight(Width, Height);
 }
 
@@ -602,6 +609,7 @@
 	Height = newHeight;
 	updateConstants();
 	checkChanges();
+	updateClip();
 	emit widthAndHeight(Width, Height);
 }
 
@@ -615,6 +623,7 @@
 		Height+=dW;
 	updateConstants();
 	checkChanges();
+	updateClip();
 	emit widthAndHeight(Width, Height);
 }
 
@@ -5078,6 +5087,7 @@
 
 QRect PageItem::getRedrawBounding(const double viewScale)
 {
+	setRedrawBounding();
 	int x = qRound(floor(BoundingX - Oldm_lineWidth / 2.0 - 5) * viewScale);
 	int y = qRound(floor(BoundingY - Oldm_lineWidth / 2.0 - 5) * viewScale);
 	int w = qRound(ceil(BoundingW + Oldm_lineWidth + 10) * viewScale);




More information about the scribus-commit mailing list