gtk-engines r1232 - in trunk: . engines/support



Author: bberg
Date: Thu Aug 14 22:03:42 2008
New Revision: 1232
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1232&view=rev

Log:
2008-08-15  Benjamin Berg  <benjamin sipsolutions net>

	* engines/support/cairo-support.c: (ge_cairo_pattern_fill):
	Prevent negative width/height from destroying the patterns for later
	drawing operations.


Modified:
   trunk/ChangeLog
   trunk/engines/support/cairo-support.c

Modified: trunk/engines/support/cairo-support.c
==============================================================================
--- trunk/engines/support/cairo-support.c	(original)
+++ trunk/engines/support/cairo-support.c	Thu Aug 14 22:03:42 2008
@@ -635,9 +635,10 @@
 	cairo_matrix_t original_matrix, current_matrix;
 
 	if (pattern->operator == CAIRO_OPERATOR_DEST)
-	{
 		return;
-	}
+	
+	if (width <= 0 || height <= 0)
+		return;
 
 	cairo_pattern_get_matrix(pattern->handle, &original_matrix);
 	current_matrix = original_matrix;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]