GtkSharp.CellRenderer.gtksharp_cellrenderer_base_get_size: adjust loop exit

This commit is contained in:
lytico 2020-04-21 18:54:32 +02:00
parent 87bdffacc7
commit fb33b67d25

View file

@ -129,6 +129,7 @@ namespace Gtk
var obj = TryGetObject (cell); var obj = TryGetObject (cell);
var parent = obj.NativeType; var parent = obj.NativeType;
while ((parent = parent.GetBaseType ()) != GLib.GType.None) { while ((parent = parent.GetBaseType ()) != GLib.GType.None) {
if (parent.ToString ().StartsWith ("__gtksharp_")) { if (parent.ToString ().StartsWith ("__gtksharp_")) {
continue; continue;
} }
@ -156,9 +157,9 @@ namespace Gtk
Marshal.FreeHGlobal (d); Marshal.FreeHGlobal (d);
} }
} }
}
return; return;
}
} }
} }