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; 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;