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:
authorbubnikv <bubnikv@gmail.com>2019-03-23 10:23:22 +0300
committerbubnikv <bubnikv@gmail.com>2019-03-23 10:23:22 +0300
commit4f585f11575d49dd086bc65badd4b3ebe2f10955 (patch)
tree6dbac3b169becec48929fd3deda4029db682b90f /src/slic3r/GUI/Field.cpp
parentc623cbc4d72bbd5e05c27946292139fd2576b7fc (diff)
Improved rendering when deleting an option from object's overrides.
Replaced the single column icon with an empty icon. Will it break something? The single column added an ugly spacer in front of non-editable combo boxes.
Diffstat (limited to 'src/slic3r/GUI/Field.cpp')
-rw-r--r--src/slic3r/GUI/Field.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp
index 026b62ab5..9cd933160 100644
--- a/src/slic3r/GUI/Field.cpp
+++ b/src/slic3r/GUI/Field.cpp
@@ -540,7 +540,10 @@ void Choice::BUILD() {
else{
for (auto el : m_opt.enum_labels.empty() ? m_opt.enum_values : m_opt.enum_labels) {
const wxString& str = _(el);//m_opt_id == "support" ? _(el) : el;
- temp->Append(str, create_scaled_bitmap("empty_icon.png"));
+ //FIXME Vojtech: Why is the single column empty icon necessary? It is a workaround of some kind, but what for?
+ // Please document such workarounds by comments!
+ // temp->Append(str, create_scaled_bitmap("empty_icon.png"));
+ temp->Append(str, wxNullBitmap);
}
set_selection();
}