From: Robert Roebling Date: Mon, 16 Jul 2001 14:27:16 +0000 (+0000) Subject: Added missing methods. Now tested. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f0d53ebfb2adaf97f851dd765b84b84cc355a6ef Added missing methods. Now tested. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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;