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:
parent
6871f5fe90
commit
099ca52b29
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user