making newline fixes depending on the encoding of \n
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a1bf307a46
commit
2e7573f70e
@ -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 ) ;
|
||||
|
Loading…
Reference in New Issue
Block a user