Control: tags 1075034 + patch

On Wed, 03 Jul 2024 12:28:59 +0000 Matthias Klose <d...@debian.org> wrote:
> [This bug is targeted to the upcoming trixie release]
> 
> The package fails to build in a test rebuild on at least amd64 with
> gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
> severity of this report will be raised before the trixie release.
> 

The attached patch makes the build work again.

/Andreas Rönnquist
gus...@debian.org
From: =?utf-8?q?Andreas_R=C3=B6nnquist?= <gus...@debian.org>
Date: Thu, 1 Aug 2024 17:06:30 +0200
Subject: Fix casting to GooCanvasItemModelSimple

---
 src/goocanvasitemsimple.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/goocanvasitemsimple.c b/src/goocanvasitemsimple.c
index 19b3424..7095fd4 100644
--- a/src/goocanvasitemsimple.c
+++ b/src/goocanvasitemsimple.c
@@ -1536,7 +1536,7 @@ goo_canvas_item_simple_set_model (GooCanvasItemSimple  *item,
   goo_canvas_item_simple_free_data (item->simple_data);
   g_slice_free (GooCanvasItemSimpleData, item->simple_data);
 
-  item->model = g_object_ref (model);
+  item->model = (GooCanvasItemModelSimple*)g_object_ref (model);
   item->simple_data = &item->model->simple_data;
 
   if (accessibility_enabled)

Reply via email to