fix running on GTK < 2.10 when built with later, broken in r72935

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett 2014-08-08 20:37:24 +00:00
parent 6871f5fe90
commit 099ca52b29

View File

@ -332,7 +332,10 @@ wxPoint wxControl::GTKGetEntryMargins(GtkEntry* entry) const
#ifndef __WXGTK3__
#if GTK_CHECK_VERSION(2,10,0)
// The margins we have previously set
const GtkBorder* border = gtk_entry_get_inner_border(entry);
const GtkBorder* border = NULL;
if (gtk_check_version(2,10,0) == NULL)
border = gtk_entry_get_inner_border(entry);
if ( border )
{
marg.x = border->left + border->right;