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:
@@ -1200,7 +1200,7 @@ wxString wxMacUnicodeTextControl::GetStringValue() const
|
|||||||
wxMacCFStringHolder cf(value) ;
|
wxMacCFStringHolder cf(value) ;
|
||||||
result = cf.AsString() ;
|
result = cf.AsString() ;
|
||||||
}
|
}
|
||||||
#if TARGET_API_MAC_OSX
|
#if '\n' == 10
|
||||||
wxMacConvertNewlines13To10( &result ) ;
|
wxMacConvertNewlines13To10( &result ) ;
|
||||||
#else
|
#else
|
||||||
wxMacConvertNewlines10To13( &result ) ;
|
wxMacConvertNewlines10To13( &result ) ;
|
||||||
@@ -1378,7 +1378,7 @@ wxString wxMacMLTEControl::GetStringValue() const
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#if TARGET_API_MAC_OSX
|
#if '\n' == 10
|
||||||
wxMacConvertNewlines13To10( &result ) ;
|
wxMacConvertNewlines13To10( &result ) ;
|
||||||
#else
|
#else
|
||||||
wxMacConvertNewlines10To13( &result ) ;
|
wxMacConvertNewlines10To13( &result ) ;
|
||||||
|
Reference in New Issue
Block a user