]> git.sur5r.net Git - glabels/commitdiff
Fixed crash when manipulating barcode
authorJim Evins <evins@snaught.com>
Sun, 13 Dec 2009 05:07:20 +0000 (00:07 -0500)
committerJim Evins <evins@snaught.com>
Sun, 13 Dec 2009 05:07:20 +0000 (00:07 -0500)
Failed to initialize line_color_node for barcodes in object_changed_cb().

src/object-editor.c

index cab3477e211dd9ffb09d7a53b3230d977c184ccd..dd5d5cca6c2f480c940e16a587a7e9913a5a5095 100644 (file)
@@ -850,6 +850,7 @@ object_changed_cb (glLabelObject  *object,
                 bc_data = gl_label_barcode_get_data (GL_LABEL_BARCODE(object));
                 gl_label_barcode_get_props (GL_LABEL_BARCODE(object),
                                             &id, &text_flag, &cs_flag, &format_digits);
+                line_color_node   = gl_label_object_get_line_color (GL_LABEL_OBJECT(object));
 
                 gl_object_editor_set_size (editor, w, h);
                 gl_object_editor_set_data (editor, (merge != NULL), bc_data);