Turn off automatic dash replacement in wxOSX wxTextCtrl

This makes the text control match the other platforms as well as making it
usable for entering compiler or command line flags for programs.

Closes https://github.com/wxWidgets/wxWidgets/pull/186
This commit is contained in:
Daniel Kulp 2016-01-30 08:11:01 -05:00 committed by Vadim Zeitlin
parent ddae98fc35
commit 8d42890df4

View File

@ -620,7 +620,8 @@ wxNSTextViewControl::wxNSTextViewControl( wxTextCtrl *wxPeer, WXWidget w, long s
[tv setVerticallyResizable:YES];
[tv setHorizontallyResizable:hasHScroll];
[tv setAutoresizingMask:NSViewWidthSizable];
[tv setAutomaticDashSubstitutionEnabled:false];
if ( hasHScroll )
{
[[tv textContainer] setContainerSize:NSMakeSize(FLT_MAX, FLT_MAX)];