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:
Włodzimierz Skiba
2004-11-05 21:04:46 +00:00
parent 141f4958e0
commit 34158fee38

View File

@@ -2360,7 +2360,7 @@ wxSize wxTextCtrl::DoGetBestClientSize() const
void wxTextCtrl::UpdateTextRect() void wxTextCtrl::UpdateTextRect()
{ {
wxRect rectTotal(wxPoint(0, 0), GetClientSize()); wxRect rectTotal(GetClientSize());
wxCoord *extraSpace = WrapLines() ? &WData().m_widthMark : NULL; wxCoord *extraSpace = WrapLines() ? &WData().m_widthMark : NULL;
m_rectText = GetRenderer()->GetTextClientArea(this, rectTotal, extraSpace); m_rectText = GetRenderer()->GetTextClientArea(this, rectTotal, extraSpace);