From: Thomas Debesse Date: Fri, 5 Mar 2021 05:16:15 +0000 (+0100) Subject: radiant/texwindow: fix crash when assigning a tag, fix #146 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F174%2Fhead;p=xonotic%2Fnetradiant.git radiant/texwindow: fix crash when assigning a tag, fix #146 Fix crash when assigning a tag, fix #146 Seems to be a bug introduced by @TimePath in 0203ac024e9396ebc180d9721da40b90b7c33dc6 (Wrap more GTK) It was probably a typo, this is the change for which a revert fixes the bug: -gboolean TextureBrowser_tagMoveHelper( ui::TreeModel model, ui::TreePath path, GtkTreeIter* iter, GSList** selected ){ +gboolean TextureBrowser_tagMoveHelper( ui::TreeModel model, ui::TreePath path, GtkTreeIter iter, GSList** selected ){ The commit just re-add the pointer mark. --- diff --git a/radiant/texwindow.cpp b/radiant/texwindow.cpp index 9870d2a0..cf37ff4f 100644 --- a/radiant/texwindow.cpp +++ b/radiant/texwindow.cpp @@ -1813,7 +1813,7 @@ ui::MenuItem TextureBrowser_constructTagsMenu( ui::Menu menu ){ return textures_menu_item; } -gboolean TextureBrowser_tagMoveHelper( ui::TreeModel model, ui::TreePath path, GtkTreeIter iter, GSList** selected ){ +gboolean TextureBrowser_tagMoveHelper( ui::TreeModel model, ui::TreePath path, GtkTreeIter* iter, GSList** selected ){ g_assert( selected != NULL ); auto rowref = gtk_tree_row_reference_new( model, path );