Ticket #15980: textctrl-load-file.patch

File textctrl-load-file.patch, 646 bytes (added by awi, 4 years ago)

Patch fixing the issue with loading the text.

  • src/msw/textctrl.cpp

    old new  
    13851385
    13861386bool wxTextCtrl::DoLoadFile(const wxString& file, int fileType)
    13871387{
    1388     if ( wxTextCtrlBase::DoLoadFile(file, fileType) )
    1389     {
    1390         // update the size limit if needed
    1391         AdjustSpaceLimit();
    1392 
    1393         return true;
    1394     }
    1395 
    1396     return false;
     1388    // Size limit will be updated automatically
     1389    // in SetValue()/DoWriteText(), if necessary.
     1390    return wxTextCtrlBase::DoLoadFile(file, fileType);
    13971391}
    13981392
    13991393// ----------------------------------------------------------------------------