]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/odcombo.cpp
Use real id for wxPGCanvas
[wxWidgets.git] / src / generic / odcombo.cpp
index 8321e400d12be99f383f2a170c5fde1828d0b44b..1d912e19c0a44f17467cc22fb0aa06041f4c591a 100644 (file)
@@ -1085,7 +1085,7 @@ void wxOwnerDrawnComboBox::OnDrawItem( wxDC& dc,
     if ( flags & wxODCB_PAINTING_CONTROL )
     {
         dc.DrawText( GetValue(),
-                     rect.x + GetTextIndent(),
+                     rect.x + GetMargins().x,
                      (rect.height-dc.GetCharHeight())/2 + rect.y );
     }
     else