Bug fix: Error in typecast
authorColin Clark <colin.clark@cclark.uk>
Mon, 17 Apr 2023 15:38:25 +0000 (16:38 +0100)
committerColin Clark <colin.clark@cclark.uk>
Mon, 17 Apr 2023 15:38:25 +0000 (16:38 +0100)
src/bar-keywords.cc

index 4d0d84f..32876ea 100644 (file)
@@ -680,7 +680,7 @@ static void bar_pane_keywords_dnd_receive(GtkWidget *tree_view, GdkDragContext *
                {
                case TARGET_APP_KEYWORD_PATH:
                        {
-                       GList *path = (GList *)(gtk_selection_data_get_data(selection_data));
+                       GList *path = static_cast<GList *>(*(gpointer *)(gtk_selection_data_get_data(selection_data)));
                        src_valid = keyword_tree_get_iter(keyword_tree, &src_kw_iter, path);
                        string_list_free(path);
                        break;