+2008-02-04 Jim Evins <evins@snaught.com>
+
+ * src/view-image.c: (update_object_from_editor_cb):
+ Bug #1886438. Don't update the image size unless it is actually
+ triggered by a change in image source. The result of this bug
+ was that any attempt to edit the size spinboxes, immediately
+ reset the size.
+
2008-02-03 Jim Evins <evins@snaught.com>
* src/label-image.c: (gl_label_image_class_init), (set_size):
glTextNode *filename;
const GdkPixbuf *pixbuf;
gdouble image_w, image_h;
+ gdouble new_w, new_h;
gl_debug (DEBUG_VIEW, "START");
gl_text_node_free (&filename);
/* Setting filename may have modified the size. */
- gl_label_object_get_size (object, &w, &h);
- gl_object_editor_set_size (editor, w, h);
+ gl_label_object_get_size (object, &new_w, &new_h);
+ if ( (new_w != w) || (new_h != h) )
+ {
+ gl_object_editor_set_size (editor, new_w, new_h);
+ }
/* It may also have a new base size. */
pixbuf = gl_label_image_get_pixbuf (GL_LABEL_IMAGE(object), NULL);