From 046466164fb4989cb701e694feb3d188c0426bac Mon Sep 17 00:00:00 2001 From: YuSanka Date: Fri, 26 Apr 2019 13:05:43 +0200 Subject: [PATCH] OSX: Forced set the input value for SpinControl, since the value inserted from the clipboard is not updated --- src/slic3r/GUI/Field.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp index 88ed7a445..655a81ce4 100644 --- a/src/slic3r/GUI/Field.cpp +++ b/src/slic3r/GUI/Field.cpp @@ -505,6 +505,11 @@ void SpinCtrl::BUILD() { else tmp_value = -9999; #ifdef __WXOSX__ propagate_value(); + + // Forcibly set the input value for SpinControl, since the value + // inserted from the clipboard is not updated under OSX + if (tmp_value > -9999) + dynamic_cast(window)->SetValue(tmp_value); #endif }), temp->GetId());