X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4c1fab95553e947c9f910469a440b6150475ac6..53997bc265b691aaf12fafd259a5a2d2a27b0565:/src/mac/textctrl.cpp diff --git a/src/mac/textctrl.cpp b/src/mac/textctrl.cpp index ddd40ad9d5..69da2912c7 100644 --- a/src/mac/textctrl.cpp +++ b/src/mac/textctrl.cpp @@ -624,10 +624,10 @@ wxString wxTextCtrl::GetLineText(long lineNo) const for (int j = i; j < actualsize; j++) { - tmp += wxBuffer[j]; - if (wxBuffer[j] == '\r') return tmp; + + tmp += wxBuffer[j]; } return tmp;