diff --git a/samples/combo/combo.cpp b/samples/combo/combo.cpp index 9a55db88de..6176989941 100644 --- a/samples/combo/combo.cpp +++ b/samples/combo/combo.cpp @@ -252,10 +252,7 @@ public: virtual wxCoord OnMeasureItem( size_t item ) const wxOVERRIDE { // Simply demonstrate the ability to have variable-height items - if ( item & 1 ) - return 36; - else - return 24; + return FromDIP( item & 1 ? 36 : 24 ); } virtual wxCoord OnMeasureItemWidth( size_t WXUNUSED(item) ) const wxOVERRIDE