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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2019-12-05 16:21:28 +0300
committerYuSanka <yusanka@gmail.com>2019-12-05 16:22:06 +0300
commite2f859c3b20397df862926d056d29d0022f3e9a3 (patch)
tree17c5a427ff8aac5906dce896f74d2fc6dfe3b93e /src/slic3r/GUI/ConfigWizard_private.hpp
parentcac64576c5aedf1fc34c28f2a73db59c92c043cc (diff)
Fixed filament/material sorting in the lists of ConfigWizard
Diffstat (limited to 'src/slic3r/GUI/ConfigWizard_private.hpp')
-rw-r--r--src/slic3r/GUI/ConfigWizard_private.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/slic3r/GUI/ConfigWizard_private.hpp b/src/slic3r/GUI/ConfigWizard_private.hpp
index 75cd23218..d0cd14b47 100644
--- a/src/slic3r/GUI/ConfigWizard_private.hpp
+++ b/src/slic3r/GUI/ConfigWizard_private.hpp
@@ -58,15 +58,16 @@ enum Technology {
struct Materials
{
Technology technology;
- std::set<const Preset*> presets;
+ // use vector for the presets to purpose of save of presets sorting in the bundle
+ std::vector<const Preset*> presets;
std::set<std::string> types;
Materials(Technology technology) : technology(technology) {}
void push(const Preset *preset);
void clear();
- bool containts(const Preset *preset) {
- return presets.find(preset) != presets.end();
+ bool containts(const Preset *preset) const {
+ return std::find(presets.begin(), presets.end(), preset) != presets.end();
}
const std::string& appconfig_section() const;