]> git.saurik.com Git - wxWidgets.git/commitdiff
When autosizing a row or column (AutoSize____), use GetMultiLineTextExtent to determ...
authorKevin Hock <hockkn@yahoo.com>
Fri, 22 Sep 2006 17:20:40 +0000 (17:20 +0000)
committerKevin Hock <hockkn@yahoo.com>
Fri, 22 Sep 2006 17:20:40 +0000 (17:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 68c6411e8f8413e3a36b09afe121b22bf17166aa..c216e7291bc3858f0d8575445255d68fc4cd5089 100644 (file)
@@ -10384,12 +10384,12 @@ void wxGrid::AutoSizeColOrRow( int colOrRow, bool setAsMin, bool column )
 
     if ( column )
     {
-        dc.GetTextExtent( GetColLabelValue(col), &w, &h );
+        dc.GetMultiLineTextExtent( GetColLabelValue(col), &w, &h );
         if ( GetColLabelTextOrientation() == wxVERTICAL )
             w = h;
     }
     else
-        dc.GetTextExtent( GetRowLabelValue(row), &w, &h );
+        dc.GetMultiLineTextExtent( GetRowLabelValue(row), &w, &h );
 
     extent = column ? w : h;
     if ( extent > extentMax )