BedShapeDialog and Bed_2D (as a part of it) are completed.

Added new_scale function to Polyline.
Fixed small bug in PointCtrl.
Extended change_opt_value for coPoints case.
This commit is contained in:
YuSanka 2018-01-30 12:10:12 +01:00
parent f90ea5060d
commit 7d29a7b45a
8 changed files with 239 additions and 172 deletions

View file

@ -953,8 +953,7 @@ void TabPrinter::build()
auto dlg = new BedShapeDialog(this);
dlg->build_dialog(m_config->option<ConfigOptionPoints>("bed_shape"));
if (dlg->ShowModal() == wxID_OK)
// load_key_value("bed_shape", dlg->GetValue());
;
load_key_value("bed_shape", dlg->GetValue());
}));
return sizer;
@ -1567,6 +1566,7 @@ void Tab::save_preset(std::string name /*= ""*/)
}
catch (const std::exception &e)
{
show_error(this, "Something is wrong. It can't be saved.");
return;
}