Fix a crash when applying wxTextCtrl style with GTK+3

Add missing NULL terminator to gtk_style_context_get() call (thanks g++ for
the warning).
This commit is contained in:
Vadim Zeitlin
2016-02-10 00:12:14 +01:00
parent f357fcc679
commit 35a56f5c5f

View File

@@ -1836,7 +1836,8 @@ void wxTextCtrl::DoApplyWidgetStyle(GtkRcStyle *style)
gtk_style_context_add_class(context, GTK_STYLE_CLASS_VIEW);
}
gtk_style_context_get(context, selectedFocused,
"color", &fg_orig, "background-color", &bg_orig);
"color", &fg_orig, "background-color", &bg_orig,
NULL);
if (IsMultiLine())
gtk_style_context_restore(context);