* src/xml-label-04.c: (xml04_parse_image_props):
* src/xml-label-191.c: (xml191_parse_image_props):
* src/xml-label.c: (xml_parse_object_image):
Delay setting image size until after image has been applied to new
object.
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@416
f5e0f49d-192f-0410-a22d-
a8d8700d0965
+2004-02-16 Jim Evins <evins@snaught.com>
+
+ * src/xml-label-04.c: (xml04_parse_image_props):
+ * src/xml-label-191.c: (xml191_parse_image_props):
+ * src/xml-label.c: (xml_parse_object_image):
+ Delay setting image size until after image has been applied to new
+ object.
+
2004-02-15 Jim Evins <evins@snaught.com>
* src/label-barcode.c: (gl_label_barcode_set_data),
gl_debug (DEBUG_XML, "START");
- w = gl_xml_get_prop_double (node, "w", 0);
- h = gl_xml_get_prop_double (node, "h", 0);
- gl_label_object_set_size (GL_LABEL_OBJECT(object), w, h);
-
filename = g_new0 (glTextNode, 1);
filename->field_flag = FALSE;
filename->data = xmlGetProp (node, "filename");
gl_label_image_set_filename (object, filename);
gl_text_node_free (&filename);
+ w = gl_xml_get_prop_double (node, "w", 0);
+ h = gl_xml_get_prop_double (node, "h", 0);
+ gl_label_object_set_size (GL_LABEL_OBJECT(object), w, h);
+
gl_debug (DEBUG_XML, "END");
}
}
}
- gl_label_object_set_size (GL_LABEL_OBJECT(object), w, h);
gl_label_image_set_filename (GL_LABEL_IMAGE(object), filename);
+ gl_label_object_set_size (GL_LABEL_OBJECT(object), w, h);
gl_text_node_free (&filename);
y = gl_xml_get_prop_length (node, "y", 0.0);
gl_label_object_set_position (GL_LABEL_OBJECT(object), x, y);
- /* size attrs */
- w = gl_xml_get_prop_length (node, "w", 0);
- h = gl_xml_get_prop_length (node, "h", 0);
- gl_label_object_set_size (GL_LABEL_OBJECT(object), w, h);
-
/* src or field attr */
string = xmlGetProp (node, "src");
if ( string ) {
}
}
+ /* size attrs */
+ w = gl_xml_get_prop_length (node, "w", 0);
+ h = gl_xml_get_prop_length (node, "h", 0);
+ gl_label_object_set_size (GL_LABEL_OBJECT(object), w, h);
+
/* affine attrs */
affine[0] = gl_xml_get_prop_double (node, "a0", 0.0);
affine[1] = gl_xml_get_prop_double (node, "a1", 0.0);