From c5391d33545fd84363181e85865ffd82e697a808 Mon Sep 17 00:00:00 2001 From: Martin Loidl Date: Sat, 14 Nov 2020 21:46:54 +0100 Subject: [PATCH] fixed possible segmentation in physical printer dialog * When pressing "Refresh Printers" in Physical Printer Dialog slicer crashed because of a wrong cast --- src/slic3r/GUI/Field.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp index bc6124b80..95acad1a4 100644 --- a/src/slic3r/GUI/Field.cpp +++ b/src/slic3r/GUI/Field.cpp @@ -1074,7 +1074,7 @@ void Choice::set_values(const wxArrayString &values) // # it looks that Clear() also clears the text field in recent wxWidgets versions, // # but we want to preserve it - auto ww = dynamic_cast(window); + auto ww = dynamic_cast(window); auto value = ww->GetValue(); ww->Clear(); ww->Append("");