From 3205961655e5a60cbdf692a51f60e55c6b9941b2 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Fri, 11 Jan 2019 16:32:16 +0100 Subject: [PATCH] Use OSXDisableAllSmartSubstitutions() for TextCtrl field under OSX --- src/slic3r/GUI/Field.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp index 817de5d4f..2af2dc27d 100644 --- a/src/slic3r/GUI/Field.cpp +++ b/src/slic3r/GUI/Field.cpp @@ -248,6 +248,9 @@ void TextCtrl::BUILD() { const long style = m_opt.multiline ? wxTE_MULTILINE : wxTE_PROCESS_ENTER/*0*/; auto temp = new wxTextCtrl(m_parent, wxID_ANY, text_value, wxDefaultPosition, size, style); +#ifdef __WXOSX__ + temp->OSXDisableAllSmartSubstitutions(); +#endif // __WXOSX__ temp->SetToolTip(get_tooltip_text(text_value));