From 8e2b233730ece85c04149aa4d1328519b3b79100 Mon Sep 17 00:00:00 2001 From: Mack Date: Wed, 13 Nov 2024 20:05:14 +0800 Subject: [PATCH] FIX:m_last_linear and m_last_angle add init value jira: studio-8739 Change-Id: Ib1052856e7f9b4e427a58fb89f828dc0e6593247 --- src/slic3r/GUI/StepMeshDialog.cpp | 4 ++-- src/slic3r/GUI/StepMeshDialog.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/StepMeshDialog.cpp b/src/slic3r/GUI/StepMeshDialog.cpp index df49232aa..e353dd2c8 100644 --- a/src/slic3r/GUI/StepMeshDialog.cpp +++ b/src/slic3r/GUI/StepMeshDialog.cpp @@ -90,9 +90,9 @@ StepMeshDialog::StepMeshDialog(wxWindow* parent, Slic3r::Step& file, double line auto image_bitmap = create_scaled_bitmap("step_mesh_info", this, FromDIP(120)); - wxPanel* overlay_panel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(FromDIP(image_bitmap.GetWidth()), FromDIP(image_bitmap.GetHeight())), wxTAB_TRAVERSAL); + wxPanel* overlay_panel = new wxPanel(this, wxID_ANY, wxDefaultPosition, image_bitmap.GetSize(), wxTAB_TRAVERSAL); overlay_panel->SetBackgroundStyle(wxBG_STYLE_PAINT); - wxStaticBitmap *image = new wxStaticBitmap(overlay_panel, wxID_ANY, image_bitmap, wxDefaultPosition, wxDefaultSize, 0); + wxStaticBitmap *image = new wxStaticBitmap(overlay_panel, wxID_ANY, image_bitmap, wxDefaultPosition, overlay_panel->GetSize(), 0); CenteredStaticText* text_1 = new CenteredStaticText (overlay_panel, wxID_ANY, _L("Smooth"), wxPoint(overlay_panel->GetSize().GetWidth() / 6, diff --git a/src/slic3r/GUI/StepMeshDialog.hpp b/src/slic3r/GUI/StepMeshDialog.hpp index 8c5192c74..2090bcda9 100644 --- a/src/slic3r/GUI/StepMeshDialog.hpp +++ b/src/slic3r/GUI/StepMeshDialog.hpp @@ -38,8 +38,8 @@ private: wxString m_linear_last; wxString m_angle_last; wxStaticText* mesh_face_number_text; - double m_last_linear; - double m_last_angle; + double m_last_linear = 0.003; + double m_last_angle = 0.5; std::future task; bool validate_number_range(const wxString& value, double min, double max); void update_mesh_number_text();