]> git.saurik.com Git - wxWidgets.git/commitdiff
wxUSE_STATLINE fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Thu, 22 Jul 2004 19:59:31 +0000 (19:59 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Thu, 22 Jul 2004 19:59:31 +0000 (19:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/propsize/propsize.cpp

index 17680e7f076c1198cfe14a3faab874e647b694e8..c217cba59729649bb201bd6872fa3ccf9258d472 100644 (file)
@@ -164,9 +164,14 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
     SetStatusText(_T("Resize the frame to see how controls react"));
 #endif // wxUSE_STATUSBAR
 
-#define AddLine(orient) \
-    Add( new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxSize(2,2), orient), \
-    0, wxEXPAND)
+#if wxUSE_STATLINE
+    #define AddLine(orient) \
+        Add( new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxSize(2,2), orient), \
+        0, wxEXPAND)
+#else
+    #define AddLine(orient) \
+        Add( 2, 2)
+#endif // wxUSE_STATLINE
 
 #define AddButton(label,align) Add( \
     new wxButton( this, wxID_ANY, label, wxDefaultPosition, wxSize(100,50)), \