X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fc856de1fc08a2667daf170f9b5e293f7b706ad..1914bb8e128d95526e6e2b9b35df3a32b5b0156f:/src/generic/grid.cpp diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index f40295f5f3..e27d34ae3e 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -7484,8 +7484,8 @@ void wxGrid::DrawTextRectangle( wxDC& dc, int vertAlign, int textOrientation ) { - long textWidth, textHeight; - long lineWidth, lineHeight; + long textWidth = 0, textHeight = 0; + long lineWidth = 0, lineHeight = 0; int nLines; dc.SetClippingRegion( rect ); @@ -7614,7 +7614,7 @@ void wxGrid::GetTextBoxSize( const wxDC& dc, { long w = 0; long h = 0; - long lineW, lineH; + long lineW = 0, lineH = 0; size_t i; for ( i = 0; i < lines.GetCount(); i++ )