[lasem] svg_marker: code comments.



commit 913bcb4878297b4b060a2dfc54c07e89ca79ad61
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sun Sep 30 00:56:57 2012 +0200

    svg_marker: code comments.

 src/lsmsvgmarkerelement.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/lsmsvgmarkerelement.c b/src/lsmsvgmarkerelement.c
index 88b783e..1def7c2 100644
--- a/src/lsmsvgmarkerelement.c
+++ b/src/lsmsvgmarkerelement.c
@@ -53,9 +53,13 @@ _marker_element_render (LsmSvgElement *self, LsmSvgView *view)
 	double ref_x, ref_y;
 
 	if (!marker->enable_rendering) {
+		/* Remember style for futur rendering.
+		 * Spec says properties are inherited from ancestor, not element referencing
+		 * the marker element. */
 		if (marker->style)
 			lsm_svg_style_unref (marker->style);
 		marker->style = lsm_svg_style_ref (lsm_svg_view_get_current_style (view));
+
 		lsm_debug_render ("[LsmSvgMarkerElement::render] Direct rendering not allowed");
 		return;
 	} else {
@@ -96,10 +100,10 @@ _marker_element_render (LsmSvgElement *self, LsmSvgView *view)
 
 	if (marker->orientation.value.type == LSM_SVG_ANGLE_TYPE_FIXED) {
 		lsm_svg_matrix_init_rotate (&matrix, marker->orientation.value.angle * M_PI / 18.0);
-		lsm_debug_render ("[LsmSvgMarkerElement::render] fixed angle = %g", marker->orientation.value.angle);
+		lsm_debug_render ("[LsmSvgMarkerElement::render] fixed angle = %gÂ", marker->orientation.value.angle);
 	} else {
 		lsm_svg_matrix_init_rotate (&matrix, marker->vertex_angle);
-		lsm_debug_render ("[LsmSvgMarkerElement::render] auto angle = %g", marker->vertex_angle);
+		lsm_debug_render ("[LsmSvgMarkerElement::render] auto angle = %g rad", marker->vertex_angle);
 	}
 	lsm_svg_matrix_translate (&matrix, -ref_x, -ref_y);
 



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