From fb33b67d25ea6eb2c467010f92850372ccc7d4e2 Mon Sep 17 00:00:00 2001 From: lytico Date: Tue, 21 Apr 2020 18:54:32 +0200 Subject: [PATCH] GtkSharp.CellRenderer.gtksharp_cellrenderer_base_get_size: adjust loop exit --- Source/Libs/GtkSharp/CellRenderer.GetSize.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Libs/GtkSharp/CellRenderer.GetSize.cs b/Source/Libs/GtkSharp/CellRenderer.GetSize.cs index 393f8aa4b..41145e44a 100644 --- a/Source/Libs/GtkSharp/CellRenderer.GetSize.cs +++ b/Source/Libs/GtkSharp/CellRenderer.GetSize.cs @@ -129,6 +129,7 @@ namespace Gtk var obj = TryGetObject (cell); var parent = obj.NativeType; while ((parent = parent.GetBaseType ()) != GLib.GType.None) { + if (parent.ToString ().StartsWith ("__gtksharp_")) { continue; } @@ -156,9 +157,9 @@ namespace Gtk Marshal.FreeHGlobal (d); } } - } - return; + return; + } } }