[lasem] svg: warning message fix.



commit c61e6b1f70f80300bb26f31a682c55e30825bd70
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Tue Jun 12 22:08:11 2012 +0200

    svg: warning message fix.

 src/lsmsvgelement.c        |    5 -----
 src/lsmsvgmarkerelement.c  |    3 +--
 src/lsmsvgmaskelement.c    |    2 --
 src/lsmsvgpatternelement.c |    3 +--
 src/lsmsvguseelement.c     |    2 --
 src/lsmsvgview.c           |    4 +++-
 6 files changed, 5 insertions(+), 14 deletions(-)
---
diff --git a/src/lsmsvgelement.c b/src/lsmsvgelement.c
index d6ba4c6..1746fbb 100644
--- a/src/lsmsvgelement.c
+++ b/src/lsmsvgelement.c
@@ -175,11 +175,6 @@ lsm_svg_element_render (LsmSvgElement *element, LsmSvgView *view)
 	if (!is_identity_transform)
 		is_matrix_invertible = lsm_svg_view_push_matrix (view, &element->transform.matrix);
 
-	if (!is_matrix_invertible & !is_matrix_invertible)
-		lsm_debug_render ("[LsmSvgElement::render] Not invertibale matrix for %s (%s)",
-				  lsm_dom_node_get_node_name (LSM_DOM_NODE (element)),
-				  element->id.value != NULL ? element->id.value : "no id");
-
 	if (is_identity_transform || is_matrix_invertible) {
 		lsm_svg_view_push_element (view, element);
 		lsm_svg_view_push_style (view, style);
diff --git a/src/lsmsvgmarkerelement.c b/src/lsmsvgmarkerelement.c
index 3711f61..b99aaaf 100644
--- a/src/lsmsvgmarkerelement.c
+++ b/src/lsmsvgmarkerelement.c
@@ -105,8 +105,7 @@ _marker_element_render (LsmSvgElement *self, LsmSvgView *view)
 		LSM_SVG_ELEMENT_CLASS (parent_class)->render (self, view);
 
 		lsm_svg_view_pop_viewport (view);
-	} else
-		lsm_debug_render ("[LsmSvgMarkerElement::render] Not invertible matrix");
+	}
 
 	lsm_svg_view_pop_matrix (view);
 
diff --git a/src/lsmsvgmaskelement.c b/src/lsmsvgmaskelement.c
index 3676d32..77ff6a9 100644
--- a/src/lsmsvgmaskelement.c
+++ b/src/lsmsvgmaskelement.c
@@ -125,8 +125,6 @@ lsm_svg_mask_element_render (LsmSvgElement *self, LsmSvgView *view)
 
 	if (is_matrix_invertible)
 		LSM_SVG_ELEMENT_CLASS (parent_class)->render (self, view);
-	else
-		lsm_debug_render ("[LsmSvgMaskElement::render] Not invertible matrix");
 
 	if (is_object_bounding_box) {
 		lsm_svg_view_pop_matrix (view);
diff --git a/src/lsmsvgpatternelement.c b/src/lsmsvgpatternelement.c
index ee289c2..8c08d94 100644
--- a/src/lsmsvgpatternelement.c
+++ b/src/lsmsvgpatternelement.c
@@ -270,8 +270,7 @@ lsm_svg_pattern_element_render (LsmSvgElement *self, LsmSvgView *view)
 
 			lsm_svg_view_pop_viewport (view);
 		}
-	} else
-		lsm_debug_render ("[LsmSvgPatternElement::render] Not invertiblae matrix");
+	}
 
 	if (is_object_bounding_box) {
 		lsm_svg_view_pop_matrix (view);
diff --git a/src/lsmsvguseelement.c b/src/lsmsvguseelement.c
index 0689771..4298719 100644
--- a/src/lsmsvguseelement.c
+++ b/src/lsmsvguseelement.c
@@ -104,8 +104,6 @@ lsm_svg_use_element_render (LsmSvgElement *self, LsmSvgView *view)
 
 	if (lsm_svg_view_push_matrix (view, &matrix))
 		lsm_svg_element_render (LSM_SVG_ELEMENT (element), view);
-	else
-		lsm_debug_render ("[LsmSvgUseElement::render] Not invertibale matrix");
 
 	lsm_svg_view_pop_matrix (view);
 
diff --git a/src/lsmsvgview.c b/src/lsmsvgview.c
index 1ed54fd..adf82f4 100644
--- a/src/lsmsvgview.c
+++ b/src/lsmsvgview.c
@@ -1690,8 +1690,10 @@ lsm_svg_view_push_matrix (LsmSvgView *view, const LsmSvgMatrix *matrix)
 	cr_inv_matrix = cr_matrix;
 	status = cairo_matrix_invert (&cr_inv_matrix) == CAIRO_STATUS_SUCCESS;
 
-	if (status == CAIRO_STATUS_SUCCESS)
+	if (status == CAIRO_STATUS_SUCCESS) {
+		lsm_debug_render ("[LsmSvgView::push_matrix] Not invertible matrix");
        		return FALSE;
+	}
 
 	cairo_transform (view->dom_view.cairo, &cr_matrix);
 



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