]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
warning (in Unicode only) fix
[wxWidgets.git] / src / common / wincmn.cpp
index 383c61e8fa112b6d18a7f86ae65e77a1db9c0680..810d518d9dc2a58a9aef38026738970ef7c2a9ca 100644 (file)
@@ -1994,9 +1994,9 @@ void wxWindowListNode::DeleteData()
 // borders
 // ----------------------------------------------------------------------------
 
-wxBorder wxWindowBase::GetBorder() const
+wxBorder wxWindowBase::GetBorder(long flags) const
 {
-    wxBorder border = (wxBorder)(m_windowStyle & wxBORDER_MASK);
+    wxBorder border = (wxBorder)(flags & wxBORDER_MASK);
     if ( border == wxBORDER_DEFAULT )
     {
         border = GetDefaultBorder();