diff --git a/samples/dataview/dataview.cpp b/samples/dataview/dataview.cpp index e80295515c..b4c4400fe0 100644 --- a/samples/dataview/dataview.cpp +++ b/samples/dataview/dataview.cpp @@ -262,7 +262,7 @@ public: virtual wxSize GetSize() const wxOVERRIDE { - return wxSize(60,20); + return GetView()->FromDIP(wxSize(60, 20)); } virtual bool SetValue( const wxVariant &value ) wxOVERRIDE