r14690 by fschmid - Fix incorrect gradients after scaleGroup.

scribus-commit scribus-commit at lists.scribus.net
Fri Feb 12 20:40:21 CET 2010


Revision: 14690
Author: fschmid
Date: 2010-02-12T19:37:58.955088Z
Commit message: Fix incorrect gradients after scaleGroup.

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

Diffs:
Index: scribus/scribusdoc.cpp
===================================================================
--- scribus/scribusdoc.cpp	(revision 14689)
+++ scribus/scribusdoc.cpp	(revision 14690)
@@ -10433,6 +10433,7 @@
 		FPointArray gr;
 		gr.addPoint(bb->GrStartX, bb->GrStartY);
 		gr.addPoint(bb->GrEndX, bb->GrEndY);
+		gr.addPoint(bb->GrFocalX, bb->GrFocalY);
 		FPoint g(gx, gy);
 		FPoint b(0, 0, bb->xPos(), bb->yPos(), bb->rotation(), 1, 1);
 		b -= g;
@@ -10509,6 +10510,8 @@
 		bb->GrStartY = gr.point(0).y();
 		bb->GrEndX = gr.point(1).x();
 		bb->GrEndY = gr.point(1).y();
+		bb->GrFocalX = gr.point(2).x();
+		bb->GrFocalY = gr.point(2).y();
 		bb->updateGradientVectors();
 	}
 	bb = itemSelection->itemAt(0);




More information about the scribus-commit mailing list