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:
authorVojtech Kral <vojtech@kral.hk>2019-04-18 18:21:46 +0300
committerVojtech Kral <vojtech@kral.hk>2019-04-24 17:03:32 +0300
commitcfa7802a8ae5a8390aa478cd62dd5126ee299b49 (patch)
treeac377f055b919db40450a450d521e24310122855 /src/slic3r/GUI/ConfigWizard_private.hpp
parent5fd2e573a0c4469e4874395528a7c3fa811bdbfc (diff)
ConfigWizard: Attempt to fix width hint
Diffstat (limited to 'src/slic3r/GUI/ConfigWizard_private.hpp')
-rw-r--r--src/slic3r/GUI/ConfigWizard_private.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/slic3r/GUI/ConfigWizard_private.hpp b/src/slic3r/GUI/ConfigWizard_private.hpp
index df7602adf..792b92015 100644
--- a/src/slic3r/GUI/ConfigWizard_private.hpp
+++ b/src/slic3r/GUI/ConfigWizard_private.hpp
@@ -211,6 +211,7 @@ public:
void clear();
+ int em() const { return em_w; }
private:
struct Item
{
@@ -221,7 +222,7 @@ private:
bool operator==(ConfigWizardPage *page) const { return this->page == page; }
};
- int em;
+ int em_w;
int em_h;
const wxBitmap bg;
@@ -234,7 +235,7 @@ private:
ssize_t item_hover;
size_t last_page;
- int item_height() const { return std::max(bullet_black.GetSize().GetHeight(), em) + em; }
+ int item_height() const { return std::max(bullet_black.GetSize().GetHeight(), em_w) + em_w; }
void on_paint(wxPaintEvent &evt);
void on_mouse_move(wxMouseEvent &evt);
@@ -286,6 +287,8 @@ struct ConfigWizard::priv
void on_custom_setup(bool custom_wanted);
void apply_config(AppConfig *app_config, PresetBundle *preset_bundle, const PresetUpdater *updater);
+
+ int em() const { return index->em(); }
};