]> git.sesse.net Git - vlc/commitdiff
Patch to zcot's patch by zcot :)
authorClément Stenac <zorglub@videolan.org>
Thu, 6 Oct 2005 20:14:04 +0000 (20:14 +0000)
committerClément Stenac <zorglub@videolan.org>
Thu, 6 Oct 2005 20:14:04 +0000 (20:14 +0000)
modules/gui/wxwidgets/interface.cpp

index ce4f6ee9942c43e90cb1edcf1c250b61cf161aed..094a2dc1e9ac142fdf32185313bfdbec8de904e5 100644 (file)
@@ -498,10 +498,10 @@ void Interface::CreateOurMenuBar()
     {
         //                [ MENU BUTTON WIDTH CALCULATION ]
         // [ SM_CXDLGFRAME + pixels + textextent + pixels + SM_CXDLGFRAME ]
-        GetTextExtentPoint32( hdc, menubar->GetLabelTop(i),
-                                        strlen( menubar->GetLabelTop(i) ),
-                                        &sizing );
-        i_size += sizing.cx;                             // + text size..
+        GetTextExtentPoint32( hdc, menubar->GetLabelTop(i).c_str(),
+                                menubar->GetLabelTop(i).Length(), &sizing );
+        // + text size..
+        i_size += sizing.cx;
         // +1 more pixel on each size
         i_size += 2;
         // width of 2 DLGFRAME