]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/toplevel.cpp
Fix conversion error in tooltips.
[wxWidgets.git] / src / mac / toplevel.cpp
index 67a8669f690a21e8a597a9a466b6c2dbbc3653e1..878c27f2a9231ae355861ed6684d67b093e89e5e 100644 (file)
@@ -46,7 +46,7 @@
     #include "wx/sysopt.h"
 #endif
 
-#include "ToolUtils.h"
+#include <ToolUtils.h>
 
 
 #define wxMAC_DEBUG_REDRAW 0
@@ -657,12 +657,8 @@ void  wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
     if ( m_x < 20 )
         m_x = 20 ;
 
-    m_width = size.x;
-    if (m_width == -1)
-        m_width = 20;
-    m_height = size.y;
-    if (m_height == -1)
-        m_height = 20;
+    m_width = WidthDefault(size.x);
+    m_height = HeightDefault(size.y);
 
     ::SetRect(&theBoundsRect, m_x, m_y , m_x + m_width, m_y + m_height);