]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/choice.cpp
Don't divide by zero.
[wxWidgets.git] / src / mac / choice.cpp
index bc77b99ad8b4f35728c5d9b258bcf82a918e45ee..9f7d40175e83a519ead7641165f6dcc61e9ab4d6 100644 (file)
@@ -237,7 +237,6 @@ wxSize wxChoice::DoGetBestSize() const
 #endif
     {
         wxMacPortStateHelper st( UMAGetWindowPort( (WindowRef) MacGetRootWindow() ) ) ; 
-         Rect drawRect ;
         wxFontRefData * font = (wxFontRefData*) m_font.GetRefData() ;
         if ( font )
         {
@@ -273,7 +272,6 @@ wxSize wxChoice::DoGetBestSize() const
         // Add room for the popup arrow
         lbWidth += 2 * lbHeight ;
         // And just a bit more
-        int cy = 12 ;
         int cx = ::TextWidth( "X" , 0 , 1 ) ;
         lbWidth += cx ;