diff options
author | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-02-02 12:09:15 +0000 |
---|---|---|
committer | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-02-02 12:09:15 +0000 |
commit | 071fea73851125d78a7df3a9b749fa90ab41b0fa (patch) | |
tree | a23e04b92f6cf358c8ce625096d73e3f6a4a42f3 /tikzit/src/gtk/PreambleEditor.m | |
parent | bab70f82320e8cd48ab24130594bdedaf84709d7 (diff) |
GTK: Fix a condition to avoid a critical message
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@406 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'tikzit/src/gtk/PreambleEditor.m')
-rw-r--r-- | tikzit/src/gtk/PreambleEditor.m | 2 |
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) |