diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-10-14 00:53:38 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2011-10-14 00:54:22 +0200 |
commit | 5e546ea03485811a893f3e264b7a4315fbbf7005 (patch) | |
tree | d5c6781f1e5abb818fc3d6d707453df595690706 /src | |
parent | 94876cea1ef9e97752cf622e2e43b76308940d42 (diff) |
Fix crash when importing an image not in image mode
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.c | 2 |
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); |