X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bf6461219dad12e84f5be1806e184afd2e0d6fc1..9cc62fc819e1b2b01af9732a3ad218aeec13e4d4:/src/generic/grid.cpp diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 712326e611..48ff5cf934 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -10196,7 +10196,7 @@ wxRect wxGrid::BlockToDeviceRect( const wxGridCellCoords &topLeft, } else { - rect = wxRect( 0, 0, 0, 0 ); + rect = wxRect(); } cellRect = CellToRect( bottomRight ); @@ -10271,7 +10271,7 @@ wxRect wxGrid::BlockToDeviceRect( const wxGridCellCoords &topLeft, m_gridWin->GetClientSize( &cw, &ch ); if (right < 0 || bottom < 0 || left > cw || top > ch) - return wxRect( 0, 0, 0, 0); + return wxRect(); rect.SetLeft( wxMax(0, left) ); rect.SetTop( wxMax(0, top) );