diff options
author | bubnikv <bubnikv@gmail.com> | 2019-05-03 19:01:39 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-05-03 19:01:39 +0300 |
commit | a61e8335365d711be4f1cbe08e02832426cef294 (patch) | |
tree | fe9c897eafe68af2bde086f2f21d4c027d6b0092 /src/slic3r/GUI/BedShapeDialog.cpp | |
parent | 1c6006f657a1baac22a426565463e077707f4385 (diff) |
Implemented the "Support for support enforcers only" quick selection.
Reduced some memory leaks due to the ConfigDef::default_value pointer.
Diffstat (limited to 'src/slic3r/GUI/BedShapeDialog.cpp')
-rw-r--r-- | src/slic3r/GUI/BedShapeDialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slic3r/GUI/BedShapeDialog.cpp b/src/slic3r/GUI/BedShapeDialog.cpp index 00ebf117c..fbbca7c70 100644 --- a/src/slic3r/GUI/BedShapeDialog.cpp +++ b/src/slic3r/GUI/BedShapeDialog.cpp @@ -68,14 +68,14 @@ void BedShapePanel::build_panel(ConfigOptionPoints* default_pt) auto optgroup = init_shape_options_page(_(L("Rectangular"))); ConfigOptionDef def; def.type = coPoints; - def.default_value = new ConfigOptionPoints{ Vec2d(200, 200) }; + def.set_default_value(new ConfigOptionPoints{ Vec2d(200, 200) }); def.label = L("Size"); def.tooltip = L("Size in X and Y of the rectangular plate."); Option option(def, "rect_size"); optgroup->append_single_option_line(option); def.type = coPoints; - def.default_value = new ConfigOptionPoints{ Vec2d(0, 0) }; + def.set_default_value(new ConfigOptionPoints{ Vec2d(0, 0) }); def.label = L("Origin"); def.tooltip = L("Distance of the 0,0 G-code coordinate from the front left corner of the rectangle."); option = Option(def, "rect_origin"); @@ -83,7 +83,7 @@ void BedShapePanel::build_panel(ConfigOptionPoints* default_pt) optgroup = init_shape_options_page(_(L("Circular"))); def.type = coFloat; - def.default_value = new ConfigOptionFloat(200); + def.set_default_value(new ConfigOptionFloat(200)); def.sidetext = L("mm"); def.label = L("Diameter"); def.tooltip = L("Diameter of the print bed. It is assumed that origin (0,0) is located in the center."); |