FIX:m_last_linear and m_last_angle add init value
jira: studio-8739 Change-Id: Ib1052856e7f9b4e427a58fb89f828dc0e6593247
This commit is contained in:
parent
8dfaf5e4a9
commit
8e2b233730
|
@ -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));
|
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);
|
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"),
|
CenteredStaticText* text_1 = new CenteredStaticText (overlay_panel, wxID_ANY, _L("Smooth"),
|
||||||
wxPoint(overlay_panel->GetSize().GetWidth() / 6,
|
wxPoint(overlay_panel->GetSize().GetWidth() / 6,
|
||||||
|
|
|
@ -38,8 +38,8 @@ private:
|
||||||
wxString m_linear_last;
|
wxString m_linear_last;
|
||||||
wxString m_angle_last;
|
wxString m_angle_last;
|
||||||
wxStaticText* mesh_face_number_text;
|
wxStaticText* mesh_face_number_text;
|
||||||
double m_last_linear;
|
double m_last_linear = 0.003;
|
||||||
double m_last_angle;
|
double m_last_angle = 0.5;
|
||||||
std::future<unsigned int> task;
|
std::future<unsigned int> task;
|
||||||
bool validate_number_range(const wxString& value, double min, double max);
|
bool validate_number_range(const wxString& value, double min, double max);
|
||||||
void update_mesh_number_text();
|
void update_mesh_number_text();
|
||||||
|
|
Loading…
Reference in New Issue