chiark / gitweb /
Always use machine size / 2 as machine center and remove the setting. Also fixed...
[cura.git] / Cura / gui / flatSlicerWindow.py
index 5f28767bf48e910d23cf2a948bd34fbd4bc40a99..4c8f1d913a36aa85f4f2b8a785981007ab9981e6 100644 (file)
@@ -84,7 +84,7 @@ class flatSlicerWindow(wx.Frame):
                if dlg.ShowModal() == wx.ID_OK:
                        self.filename = dlg.GetPath()
                        self.svg = svg.SVG(self.filename)
-                       self.svg.center(complex(profile.getProfileSettingFloat('machine_center_x'), profile.getProfileSettingFloat('machine_center_y')))
+                       self.svg.center(complex(profile.getPreferenceFloat('machine_width')/2, profile.getPreferenceFloat('machine_depth')/2))
                        self.preview.Refresh()
                dlg.Destroy()