r14777 by fschmid - First small adjustment for the new cairo-1.9.6 snapshot.

scribus-commit scribus-commit at lists.scribus.net
Sat Feb 20 09:10:18 CET 2010


Revision: 14777
Author: fschmid
Date: 2010-02-20T08:06:56.536033Z
Commit message: First small adjustment for the new cairo-1.9.6 snapshot.

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

Diffs:
Index: scribus/scpainter.cpp
===================================================================
--- scribus/scpainter.cpp	(revision 14776)
+++ scribus/scpainter.cpp	(revision 14777)
@@ -2245,9 +2245,11 @@
 			np3 = points->point(poi+2);
 			if (np4 == np3)
 				continue;
-		//	if ((np == np1) && (np2 == np3))
-		//		cairo_line_to( m_cr, np3.x(), np3.y());
-		//	else
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 9, 6)
+			if ((np == np1) && (np2 == np3))
+				cairo_line_to( m_cr, np3.x(), np3.y());
+			else
+#endif
 				cairo_curve_to(m_cr, np1.x(), np1.y(), np2.x(), np2.y(), np3.x(), np3.y());
 			np4 = np3;
 		}




More information about the scribus-commit mailing list