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-09-05 12:47:04 +0300
committerYuSanka <yusanka@gmail.com>2019-09-05 16:31:22 +0300
commit4263fa8dff70c5aaf78aff49832dc2dd8235e81d (patch)
tree3ac99852ac1cf623538c928554d7df24aa6b37be /src/slic3r/GUI/wxExtensions.hpp
parent1651c8db6e8333c3a657302282711fda25463198 (diff)
DoubleSlider refactoring
Diffstat (limited to 'src/slic3r/GUI/wxExtensions.hpp')
-rw-r--r--src/slic3r/GUI/wxExtensions.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/slic3r/GUI/wxExtensions.hpp b/src/slic3r/GUI/wxExtensions.hpp
index e15592046..54d1bf7cb 100644
--- a/src/slic3r/GUI/wxExtensions.hpp
+++ b/src/slic3r/GUI/wxExtensions.hpp
@@ -729,8 +729,8 @@ public:
int GetMinValue() const { return m_min_value; }
int GetMaxValue() const { return m_max_value; }
- double GetMinValueD() { return m_values.empty() ? 0. : m_values[m_min_value].second; }
- double GetMaxValueD() { return m_values.empty() ? 0. : m_values[m_max_value].second; }
+ double GetMinValueD() { return m_values.empty() ? 0. : m_values[m_min_value]; }
+ double GetMaxValueD() { return m_values.empty() ? 0. : m_values[m_max_value]; }
int GetLowerValue() const { return m_lower_value; }
int GetHigherValue() const { return m_higher_value; }
int GetActiveValue() const;
@@ -746,7 +746,7 @@ public:
void SetKoefForLabels(const double koef) {
m_label_koef = koef;
}
- void SetSliderValues(const std::vector<std::pair<int, double>>& values) {
+ void SetSliderValues(const std::vector<double>& values) {
m_values = values;
}
void ChangeOneLayerLock();
@@ -867,7 +867,7 @@ private:
std::vector<wxPen*> m_line_pens;
std::vector<wxPen*> m_segm_pens;
std::set<int> m_ticks;
- std::vector<std::pair<int,double>> m_values;
+ std::vector<double> m_values;
};