[lasem] svg_view: disable checks in create_surface_pattern, for now.



commit 6bc183f337f5da0018dcb86b5d186f07b9d39e61
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sun Aug 29 09:54:24 2010 +0200

    svg_view: disable checks in create_surface_pattern, for now.

 src/lsmsvgview.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/src/lsmsvgview.c b/src/lsmsvgview.c
index fcd31f1..0e582b8 100644
--- a/src/lsmsvgview.c
+++ b/src/lsmsvgview.c
@@ -256,9 +256,6 @@ lsm_svg_view_create_surface_pattern (LsmSvgView *view,
 	g_return_val_if_fail (view->pattern_data != NULL, FALSE);
 	g_return_val_if_fail (view->dom_view.cairo == NULL, FALSE);
 
-	if (viewport->width <= 0.0 || viewport->height <= 0.0)
-		return FALSE;
-
 	x1 = viewport->x;
 	y1 = viewport->y;
 	x2 = viewport->x + viewport->width;
@@ -287,9 +284,6 @@ lsm_svg_view_create_surface_pattern (LsmSvgView *view,
 	lsm_debug ("render", "[LsmSvgView::create_pattern] pattern size = %g ,%g at %g, %g (scale %g x %g)",
 		   device_width, device_height, viewport->x, viewport->y, x_scale, y_scale);
 
-	if (device_height < 1.0 || device_width < 1.0)
-		return FALSE;
-
 	switch (surface_type) {
 		case LSM_SVG_VIEW_SURFACE_TYPE_AUTO:
 			surface = cairo_surface_create_similar (cairo_get_target (view->pattern_data->old_cairo),



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