summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/Menu.m
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/gtk/Menu.m')
-rw-r--r--tikzit/src/gtk/Menu.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/tikzit/src/gtk/Menu.m b/tikzit/src/gtk/Menu.m
index 37ab87c..b99336d 100644
--- a/tikzit/src/gtk/Menu.m
+++ b/tikzit/src/gtk/Menu.m
@@ -294,7 +294,8 @@ static void zoom_reset_cb (GtkAction *action, MainWindow *window) {
static void input_mode_change_cb (GtkRadioAction *action, GtkRadioAction *current, MainWindow *window) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [[window graphInputHandler] setMode:(InputMode)gtk_radio_action_get_current_value (action)];
+ InputMode mode = (InputMode)gtk_radio_action_get_current_value (action);
+ [[window graphInputHandler] setMode:mode];
[pool drain];
}