r16812 by jghali - #10228 : build fails with undefined variables when building with system cairo 1.10.2

scribus-commit scribus-commit at lists.scribus.net
Mon Aug 29 21:56:22 UTC 2011


Author: jghali
Date: Mon Aug 29 21:56:21 2011
New Revision: 16812

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=16812
Log:
#10228 : build fails with undefined variables when building with system cairo 1.10.2

Modified:
    trunk/Scribus/scribus/scpainter.cpp

Modified: trunk/Scribus/scribus/scpainter.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16812&path=/trunk/Scribus/scribus/scpainter.cpp
==============================================================================
--- trunk/Scribus/scribus/scpainter.cpp (original)
+++ trunk/Scribus/scribus/scpainter.cpp Mon Aug 29 21:56:21 2011
@@ -1394,16 +1394,17 @@
 				double r, g, b, a;
 				for (int col = 0; col < meshGradientPatches.count(); col++)
 				{
+					meshGradientPatch patch = meshGradientPatches[col];
 					meshPoint mp1 = patch.TL;
 					meshPoint mp2 = patch.TR;
 					meshPoint mp3 = patch.BR;
 					meshPoint mp4 = patch.BL;
 					cairo_new_path( cr );
-					cairo_move_to(mpat, mp1.gridPoint.x(), mp1.gridPoint.y());
-					cairo_curve_to(mpat, mp1.controlRight.x(), mp1.controlRight.y(), mp2.controlLeft.x(), mp2.controlLeft.y(), mp2.gridPoint.x(), mp2.gridPoint.y());
-					cairo_curve_to(mpat, mp2.controlBottom.x(), mp2.controlBottom.y(), mp3.controlTop.x(), mp3.controlTop.y(), mp3.gridPoint.x(), mp3.gridPoint.y());
-					cairo_curve_to(mpat, mp3.controlLeft.x(), mp3.controlLeft.y(), mp4.controlRight.x(), mp4.controlRight.y(), mp4.gridPoint.x(), mp4.gridPoint.y());
-					cairo_curve_to(mpat, mp4.controlTop.x(), mp4.controlTop.y(), mp1.controlBottom.x(), mp1.controlBottom.y(), mp1.gridPoint.x(), mp1.gridPoint.y());
+					cairo_move_to(cr, mp1.gridPoint.x(), mp1.gridPoint.y());
+					cairo_curve_to(cr, mp1.controlRight.x(), mp1.controlRight.y(), mp2.controlLeft.x(), mp2.controlLeft.y(), mp2.gridPoint.x(), mp2.gridPoint.y());
+					cairo_curve_to(cr, mp2.controlBottom.x(), mp2.controlBottom.y(), mp3.controlTop.x(), mp3.controlTop.y(), mp3.gridPoint.x(), mp3.gridPoint.y());
+					cairo_curve_to(cr, mp3.controlLeft.x(), mp3.controlLeft.y(), mp4.controlRight.x(), mp4.controlRight.y(), mp4.gridPoint.x(), mp4.gridPoint.y());
+					cairo_curve_to(cr, mp4.controlTop.x(), mp4.controlTop.y(), mp1.controlBottom.x(), mp1.controlBottom.y(), mp1.gridPoint.x(), mp1.gridPoint.y());
 					cairo_close_path( cr );
 					double acr = 0.0;
 					double acg = 0.0;




More information about the scribus-commit mailing list