From ae23ae4320720937c38629d89f44266b2b1c9712 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Wed, 17 Jan 2024 17:05:20 +0100 Subject: [PATCH] Fix crash when switching printer profile while having "support point density" overridden --- src/slic3r/GUI/UnsavedChangesDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/UnsavedChangesDialog.cpp b/src/slic3r/GUI/UnsavedChangesDialog.cpp index 597269ae77..2e75869599 100644 --- a/src/slic3r/GUI/UnsavedChangesDialog.cpp +++ b/src/slic3r/GUI/UnsavedChangesDialog.cpp @@ -1095,7 +1095,7 @@ static wxString get_string_value(std::string opt_key, const DynamicPrintConfig& switch (opt->type) { case coInt: - return from_u8((boost::format("%1%") % config.opt_int(opt_key)).str()); + return from_u8((boost::format("%1%") % config.option(opt_key)->getInt()).str()); case coInts: { if (is_nullable) { auto values = config.opt(opt_key);