Simplify wxRect construction at the wxPoint(0,0) with given size.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2360,7 +2360,7 @@ wxSize wxTextCtrl::DoGetBestClientSize() const
|
||||
|
||||
void wxTextCtrl::UpdateTextRect()
|
||||
{
|
||||
wxRect rectTotal(wxPoint(0, 0), GetClientSize());
|
||||
wxRect rectTotal(GetClientSize());
|
||||
wxCoord *extraSpace = WrapLines() ? &WData().m_widthMark : NULL;
|
||||
m_rectText = GetRenderer()->GetTextClientArea(this, rectTotal, extraSpace);
|
||||
|
||||
|
Reference in New Issue
Block a user