]> git.saurik.com Git - wxWidgets.git/commitdiff
bug fix
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 15 Oct 2003 19:23:52 +0000 (19:23 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 15 Oct 2003 19:23:52 +0000 (19:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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

index 8fb67180e8cb81f9fc34769208013e804ffa9791..a28eb9241c6e5450c5a99eee2c2ef37672523af0 100644 (file)
@@ -1174,7 +1174,7 @@ long wxTextCtrl::GetLastPosition() const
 void wxTextCtrl::Replace(long from, long to, const wxString& str)
 {
     wxString value = str ;
 void wxTextCtrl::Replace(long from, long to, const wxString& str)
 {
     wxString value = str ;
-    wxMacConvertNewlines13To10( &st ) ;
+    wxMacConvertNewlines13To10( &value ) ;
     if ( !m_macUsesTXN )
     {
         ControlEditTextSelectionRec selection ;
     if ( !m_macUsesTXN )
     {
         ControlEditTextSelectionRec selection ;
index 8fb67180e8cb81f9fc34769208013e804ffa9791..a28eb9241c6e5450c5a99eee2c2ef37672523af0 100644 (file)
@@ -1174,7 +1174,7 @@ long wxTextCtrl::GetLastPosition() const
 void wxTextCtrl::Replace(long from, long to, const wxString& str)
 {
     wxString value = str ;
 void wxTextCtrl::Replace(long from, long to, const wxString& str)
 {
     wxString value = str ;
-    wxMacConvertNewlines13To10( &st ) ;
+    wxMacConvertNewlines13To10( &value ) ;
     if ( !m_macUsesTXN )
     {
         ControlEditTextSelectionRec selection ;
     if ( !m_macUsesTXN )
     {
         ControlEditTextSelectionRec selection ;