]> git.saurik.com Git - wxWidgets.git/commitdiff
Added missing methods. Now tested.
authorRobert Roebling <robert@roebling.de>
Mon, 16 Jul 2001 14:27:16 +0000 (14:27 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 16 Jul 2001 14:27:16 +0000 (14:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/textctrl.cpp
src/mac/textctrl.cpp

index ddd40ad9d5acc9c2b41bedad9a826186c1a7ed7f..69da2912c7daa85033ac7e96be0cfb1952891271 100644 (file)
@@ -624,10 +624,10 @@ wxString wxTextCtrl::GetLineText(long lineNo) const
                
                for (int j = i; j < actualsize; j++)
                {
                
                for (int j = i; j < actualsize; j++)
                {
-                   tmp += wxBuffer[j];
-                   
                    if (wxBuffer[j] == '\r')
                        return tmp;
                    if (wxBuffer[j] == '\r')
                        return tmp;
+                       
+                   tmp += wxBuffer[j];
                }
                
                return tmp;
                }
                
                return tmp;
index ddd40ad9d5acc9c2b41bedad9a826186c1a7ed7f..69da2912c7daa85033ac7e96be0cfb1952891271 100644 (file)
@@ -624,10 +624,10 @@ wxString wxTextCtrl::GetLineText(long lineNo) const
                
                for (int j = i; j < actualsize; j++)
                {
                
                for (int j = i; j < actualsize; j++)
                {
-                   tmp += wxBuffer[j];
-                   
                    if (wxBuffer[j] == '\r')
                        return tmp;
                    if (wxBuffer[j] == '\r')
                        return tmp;
+                       
+                   tmp += wxBuffer[j];
                }
                
                return tmp;
                }
                
                return tmp;