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:
authorYuSanka <yusanka@gmail.com>2021-02-25 14:55:06 +0300
committerYuSanka <yusanka@gmail.com>2021-02-25 14:55:28 +0300
commit89f065b57e2a8c69a3183814502a92659d05438c (patch)
treec8ad578b9dd260c8272d96cb36591c2d8e276fc0 /src/slic3r/GUI/PresetComboBoxes.hpp
parentbe7e2f2ae15b78fea898d65b62ebded3af732942 (diff)
Fix of #5510: ctrlsub.cpp(231): assert "IsValid(n)" failed in GetClientData(): Invalid index passed to GetClientData()
BitmapComboBox: Use virtual OnSelect() on wxEVT_COMBO event Don't save information about preset combobox type to the evt.SetInt(). This information can be received from BitmapComboBox::get_type() now.
Diffstat (limited to 'src/slic3r/GUI/PresetComboBoxes.hpp')
-rw-r--r--src/slic3r/GUI/PresetComboBoxes.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slic3r/GUI/PresetComboBoxes.hpp b/src/slic3r/GUI/PresetComboBoxes.hpp
index 6f41c95f4..efcbec370 100644
--- a/src/slic3r/GUI/PresetComboBoxes.hpp
+++ b/src/slic3r/GUI/PresetComboBoxes.hpp
@@ -71,6 +71,7 @@ public:
void show_all(bool show_all);
virtual void update();
virtual void msw_rescale();
+ virtual void OnSelect(wxCommandEvent& evt);
protected:
typedef std::size_t Marker;
@@ -167,6 +168,7 @@ public:
wxString get_preset_name(const Preset& preset) override;
void update() override;
void msw_rescale() override;
+ void OnSelect(wxCommandEvent& evt) override;
private:
int m_extruder_idx = -1;
@@ -193,6 +195,7 @@ public:
void update() override;
void update_dirty();
void msw_rescale() override;
+ void OnSelect(wxCommandEvent& evt) override;
void set_enable_all(bool enable=true) { m_enable_all = enable; }