Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2018-04-19 17:49:22 +0300
committerVojtech Kral <vojtech@kral.hk>2018-04-19 17:49:22 +0300
commitbdaf1b01bedea5cac8b0d3d15dd48f87f531651c (patch)
tree57b2cf3411db050ff2be7c47b7e8a551f219910a /xs/src/slic3r/GUI/ConfigWizard_private.hpp
parentc3c9ebdd12616aaa79ea0e6d2a06d3db06d36f31 (diff)
ConfigWizard: Fix reset checkbox
Diffstat (limited to 'xs/src/slic3r/GUI/ConfigWizard_private.hpp')
-rw-r--r--xs/src/slic3r/GUI/ConfigWizard_private.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs/src/slic3r/GUI/ConfigWizard_private.hpp b/xs/src/slic3r/GUI/ConfigWizard_private.hpp
index 8e43ac3ac..cdab2eb3c 100644
--- a/xs/src/slic3r/GUI/ConfigWizard_private.hpp
+++ b/xs/src/slic3r/GUI/ConfigWizard_private.hpp
@@ -107,7 +107,7 @@ struct PageWelcome: ConfigWizardPage
virtual wxPanel* extra_buttons() { return others_buttons; }
virtual void on_page_set();
- bool reset_user_profile() const { return cbox_reset->GetValue(); }
+ bool reset_user_profile() const { return cbox_reset != nullptr ? cbox_reset->GetValue() : false; }
void on_variant_checked();
};