aboutsummaryrefslogtreecommitdiff
path: root/src/tool_image.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-11-09 00:19:04 +0100
committerThomas White <taw@bitwiz.org.uk>2011-11-09 00:19:04 +0100
commit9c4933dfe7306080056beaaff99c27991a7c473d (patch)
tree407c1f093503617309664df827f0276ac53a8351 /src/tool_image.c
parente64a4eb72eb99f4995e6b48b06389fbb45ce00e8 (diff)
Fix and rationalise update/redraw logic
Diffstat (limited to 'src/tool_image.c')
-rw-r--r--src/tool_image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_image.c b/src/tool_image.c
index 16ebfa8..a9609ff 100644
--- a/src/tool_image.c
+++ b/src/tool_image.c
@@ -87,8 +87,6 @@ static void update_image(struct image_object *o)
o->scaled_pb = gdk_pixbuf_scale_simple(i->pb, w, h,
GDK_INTERP_BILINEAR);
} /* else the size didn't change */
-
- redraw_slide(((struct object *)o)->parent);
}
@@ -188,6 +186,7 @@ struct object *add_image_object(struct slide *s, double x, double y,
}
update_image(new);
+ redraw_slide(s);
return (struct object *)new;
}
@@ -298,6 +297,7 @@ static void end_drag(struct toolinfo *tip, struct presentation *p,
o->bb_width = ti->box_width;
o->bb_height = ti->box_height;
update_image((struct image_object *)o);
+ redraw_slide(o->parent);
ti->drag_reason = IMAGE_DRAG_REASON_NONE;
}