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:
Diffstat (limited to 'src/libslic3r/Config.hpp')
-rw-r--r--src/libslic3r/Config.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libslic3r/Config.hpp b/src/libslic3r/Config.hpp
index 7f826109a..c521f1cbb 100644
--- a/src/libslic3r/Config.hpp
+++ b/src/libslic3r/Config.hpp
@@ -63,7 +63,7 @@ enum ConfigOptionType {
};
enum ConfigOptionMode {
- comSimple,
+ comSimple = 0,
comAdvanced,
comExpert
};
@@ -218,7 +218,7 @@ public:
const T& get_at(size_t i) const { return const_cast<ConfigOptionVector<T>*>(this)->get_at(i); }
- // Resize this vector by duplicating the last value.
+ // Resize this vector by duplicating the /*last*/first value.
// If the current vector is empty, the default value is used instead.
void resize(size_t n, const ConfigOption *opt_default = nullptr) override
{
@@ -238,7 +238,7 @@ public:
this->values.resize(n, static_cast<const ConfigOptionVector<T>*>(opt_default)->values.front());
} else {
// Resize by duplicating the last value.
- this->values.resize(n, this->values.back());
+ this->values.resize(n, this->values./*back*/front());
}
}
}