Get shorter code with new wxRect constructor.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fd864f01f2
commit
3f0785de9a
@ -241,7 +241,7 @@ void wxListbook::OnSize(wxSizeEvent& event)
|
||||
#if wxUSE_LINE_IN_LISTBOOK
|
||||
if ( m_line )
|
||||
{
|
||||
wxRect rectLine(wxPoint(0, 0), sizeClient);
|
||||
wxRect rectLine(sizeClient);
|
||||
|
||||
switch ( GetWindowStyle() & wxLB_ALIGN_MASK )
|
||||
{
|
||||
|
@ -1429,7 +1429,7 @@ void wxWindowDC::Clear()
|
||||
{
|
||||
wxCHECK_RET( Ok(), "invalid dc" );
|
||||
|
||||
wxRect rect( wxPoint( 0, 0 ), GetSize() );
|
||||
wxRect rect( GetSize() );
|
||||
Clear( rect );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user