]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/combobox_native.cpp
fixed memory leaks in case of errors during file load in wxSound::Create() (coverity...
[wxWidgets.git] / src / motif / combobox_native.cpp
index e6672c200a5696214f2047f7f091fef1b2bfa614..80245a8370ea3b4dd70f171c4930b999f2752952 100644 (file)
@@ -12,8 +12,6 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/setup.h"
-
 #if wxUSE_COMBOBOX
 
 #include "wx/combobox.h"
@@ -115,8 +113,8 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
                    (XtPointer) this);
 
     wxSize best = GetBestSize();
-    if( size.x != -1 ) best.x = size.x;
-    if( size.y != -1 ) best.y = size.y;
+    if( size.x != wxDefaultCoord ) best.x = size.x;
+    if( size.y != wxDefaultCoord ) best.y = size.y;
 
     AttachWidget (parent, m_mainWidget, (WXWidget) NULL,
                   pos.x, pos.y, best.x, best.y);