Don't call AdjustSpaceLimit() explicitly in wxMSW wxTextCtrl any more.

There is no need to do it as this is done by DoWriteText() and
AdjustSpaceLimit() doesn't work correctly if called from outside of it now.
Because of this, also make it private to prevent other accidental calls to it.

Closes #15980.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-04-27 22:39:49 +00:00
parent 6700ea5ad2
commit 934ce46464
2 changed files with 7 additions and 26 deletions

View File

@@ -1379,23 +1379,6 @@ void wxTextCtrl::DoSetSelection(long from, long to, int flags)
}
}
// ----------------------------------------------------------------------------
// Working with files
// ----------------------------------------------------------------------------
bool wxTextCtrl::DoLoadFile(const wxString& file, int fileType)
{
if ( wxTextCtrlBase::DoLoadFile(file, fileType) )
{
// update the size limit if needed
AdjustSpaceLimit();
return true;
}
return false;
}
// ----------------------------------------------------------------------------
// dirty status
// ----------------------------------------------------------------------------