]> git.saurik.com Git - wxWidgets.git/commitdiff
making newline fixes depending on the encoding of \n
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 26 Sep 2004 09:06:37 +0000 (09:06 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 26 Sep 2004 09:06:37 +0000 (09:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/textctrl.cpp

index d95006ca297d28f62692b358528b92dbf123f37c..2edb5c0a07305e586aa348399c1f14be2ed727d5 100644 (file)
@@ -1200,7 +1200,7 @@ wxString wxMacUnicodeTextControl::GetStringValue() const
         wxMacCFStringHolder cf(value) ;
         result = cf.AsString() ;
     }
-#if TARGET_API_MAC_OSX
+#if '\n' == 10
     wxMacConvertNewlines13To10( &result ) ;
 #else
     wxMacConvertNewlines10To13( &result ) ;
@@ -1378,7 +1378,7 @@ wxString wxMacMLTEControl::GetStringValue() const
         }
 #endif
     }
-#if TARGET_API_MAC_OSX
+#if '\n' == 10
     wxMacConvertNewlines13To10( &result ) ;
 #else
     wxMacConvertNewlines10To13( &result ) ;