mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Fixed couple of warnings in Field.cpp, GUI_App.cpp and OptionsGroup.cpp
This commit is contained in:
parent
f73976ec8f
commit
6befe7099b
3 changed files with 20 additions and 16 deletions
|
@ -303,8 +303,9 @@ bool GUI_App::on_init_inner()
|
|||
* change min hight of object list to the normal min value (15 * wxGetApp().em_unit())
|
||||
* after first whole Mainframe updating/layouting
|
||||
*/
|
||||
if (obj_list()->GetMinSize().GetY() > 15 * em_unit())
|
||||
obj_list()->SetMinSize(wxSize(-1, 15 * em_unit()));
|
||||
const int list_min_height = 15 * em_unit();
|
||||
if (obj_list()->GetMinSize().GetY() > list_min_height)
|
||||
obj_list()->SetMinSize(wxSize(-1, list_min_height));
|
||||
|
||||
update_mode(); // update view mode after fix of the object_list size
|
||||
|
||||
|
@ -475,8 +476,9 @@ void GUI_App::recreate_GUI()
|
|||
* change min hight of object list to the normal min value (15 * wxGetApp().em_unit())
|
||||
* after first whole Mainframe updating/layouting
|
||||
*/
|
||||
if (obj_list()->GetMinSize().GetY() > 15 * em_unit())
|
||||
obj_list()->SetMinSize(wxSize(-1, 15 * em_unit()));
|
||||
const int list_min_height = 15 * em_unit();
|
||||
if (obj_list()->GetMinSize().GetY() > list_min_height)
|
||||
obj_list()->SetMinSize(wxSize(-1, list_min_height));
|
||||
|
||||
update_mode();
|
||||
|
||||
|
@ -1088,7 +1090,7 @@ void GUI_App::window_pos_restore(wxTopLevelWindow* window, const std::string &na
|
|||
|
||||
void GUI_App::window_pos_sanitize(wxTopLevelWindow* window)
|
||||
{
|
||||
unsigned display_idx = wxDisplay::GetFromWindow(window);
|
||||
/*unsigned*/int display_idx = wxDisplay::GetFromWindow(window);
|
||||
wxRect display;
|
||||
if (display_idx == wxNOT_FOUND) {
|
||||
display = wxDisplay(0u).GetClientArea();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue