r20999 by fschmid -

scribus-commit scribus-commit at lists.scribus.net
Sat Feb 13 09:35:52 UTC 2016


Author: fschmid
Date: Sat Feb 13 09:35:52 2016
New Revision: 20999

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20999
Log:
Part of Bug #12305: fixed Gradient scaling issues

Modified:
    trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp

Modified: trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20999&path=/trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp	(original)
+++ trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp	Sat Feb 13 09:35:52 2016
@@ -746,6 +746,11 @@
 					item->GrEndY   = gra.point(1).y() - item->yPos() + BaseY;
 					item->GrFocalX = gra.point(2).x() - item->xPos() + BaseX;
 					item->GrFocalY = gra.point(2).y() - item->yPos() + BaseY;
+					double ScaleX = 1.0;
+					double ScaleY = 1.0;
+					getScaleFromMatrix(mm, ScaleX, ScaleY);
+					if (ScaleX != ScaleY)
+						item->GrScale = ScaleY / ScaleX;
 				}
 				item->GrType = gc->FillGradientType;
 			}




More information about the scribus-commit mailing list