misplaced #endif
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44206
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
#if wxMAC_USE_CORE_GRAPHICS
wxClientDC dc(const_cast<wxListBox*>(this));
{
#if wxMAC_USE_CORE_GRAPHICS
wxClientDC dc(const_cast<wxListBox*>(this));
#else
wxMacPortStateHelper st( UMAGetWindowPort( (WindowRef)MacGetTopLevelWindowRef() ) );
#else
wxMacPortStateHelper st( UMAGetWindowPort( (WindowRef)MacGetTopLevelWindowRef() ) );
#else
wLine = ::TextWidth( str.c_str(), 0, str.length() );
#endif
#else
wLine = ::TextWidth( str.c_str(), 0, str.length() );
#endif
-
- lbWidth = wxMax( lbWidth, wLine );
+ lbWidth = wxMax( lbWidth, wLine );
}
// Add room for the scrollbar
}
// Add room for the scrollbar
int cy = 12;
#if wxMAC_USE_CORE_GRAPHICS
wxCoord width, height ;
int cy = 12;
#if wxMAC_USE_CORE_GRAPHICS
wxCoord width, height ;
- dc.GetTextExtent( wxT("X") , &width, &height);
+ dc.GetTextExtent( wxT("XX") , &width, &height);
- int cx = ::TextWidth( "X", 0, 1 );
+ int cx = ::TextWidth( "XX", 0, 1 );