]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/combobox.cpp
first step into modernizing MLTE-Classic as it still seems to be the most complete...
[wxWidgets.git] / src / univ / combobox.cpp
index e261d32fde980c3ea90aae45abb10330a6fde134..dbe2c63b75b8ffddd74cca403d0d2ec34fde9755 100644 (file)
@@ -330,7 +330,7 @@ void wxComboControl::DoMoveWindow(int x, int y, int width, int height)
     wxSize sizeBtn = m_btn->GetBestSize();
 
     wxCoord wText = width - sizeBtn.x;
-    wxPoint p = GetParent() ? GetParent()->GetClientAreaOrigin() : wxPoint();
+    wxPoint p = GetParent() ? GetParent()->GetClientAreaOrigin() : wxPoint(0,0);
     m_text->SetSize(x - p.x, y - p.y, wText, height);
     m_btn->SetSize(x - p.x + wText, y - p.y, sizeBtn.x, height);
 }