From b070b77fe052ed3a167e71122bb1a9b7c54ef34f Mon Sep 17 00:00:00 2001 From: awittaker Date: Tue, 7 Jan 2020 18:18:00 +0000 Subject: [PATCH] Prevent InvalidCastException in Combobox.Entry --- Source/Libs/GtkSharp/ComboBox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Libs/GtkSharp/ComboBox.cs b/Source/Libs/GtkSharp/ComboBox.cs index 1a9049c7e..cb117f55c 100644 --- a/Source/Libs/GtkSharp/ComboBox.cs +++ b/Source/Libs/GtkSharp/ComboBox.cs @@ -52,7 +52,7 @@ namespace Gtk { public Gtk.Entry Entry { get { - return (Gtk.Entry)Child; + return Child as Gtk.Entry; } }