aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-10-14 00:53:38 +0200
committerThomas White <taw@bitwiz.org.uk>2011-10-14 00:54:22 +0200
commit5e546ea03485811a893f3e264b7a4315fbbf7005 (patch)
treed5c6781f1e5abb818fc3d6d707453df595690706 /src/mainwindow.c
parent94876cea1ef9e97752cf622e2e43b76308940d42 (diff)
Fix crash when importing an image not in image mode
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 0148bbc..56b0e0c 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1017,6 +1017,8 @@ static void dnd_receive(GtkWidget *widget, GdkDragContext *drag_context,
filename,
p->ss->styles[0], p->image_store,
p->image_tool);
+
+ force_tool(p, TOOL_IMAGE);
p->editing_object = o;
redraw_object(o);