wxPoint/Size/Rect() causes the same code with (0,0) initialization and is incomparably more readable and clear.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -10196,7 +10196,7 @@ wxRect wxGrid::BlockToDeviceRect( const wxGridCellCoords &topLeft,
|
||||
}
|
||||
else
|
||||
{
|
||||
rect = wxRect();
|
||||
rect = wxRect(0,0,0,0);
|
||||
}
|
||||
|
||||
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();
|
||||
return wxRect(0,0,0,0);
|
||||
|
||||
rect.SetLeft( wxMax(0, left) );
|
||||
rect.SetTop( wxMax(0, top) );
|
||||
|
Reference in New Issue
Block a user