X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4c1fab95553e947c9f910469a440b6150475ac6..5fe143dfdfa19c4fe8e15abfa933940fb51662e5:/src/mac/carbon/textctrl.cpp diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index ddd40ad9d5..69da2912c7 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/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;