summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/PreambleEditor.m
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/gtk/PreambleEditor.m')
-rw-r--r--tikzit/src/gtk/PreambleEditor.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/tikzit/src/gtk/PreambleEditor.m b/tikzit/src/gtk/PreambleEditor.m
index 44fe409..2c292f5 100644
--- a/tikzit/src/gtk/PreambleEditor.m
+++ b/tikzit/src/gtk/PreambleEditor.m
@@ -105,7 +105,7 @@ static void preamble_selection_changed_cb (GtkTreeSelection *treeselection,
- (void) setParentWindow:(GtkWindow*)parent {
GtkWindow *oldParent = parentWindow;
- if (parent)
+ if (parentWindow)
g_object_ref (parentWindow);
parentWindow = parent;
if (oldParent)