From babedbe7d6d48a35f119974fa5699ce79fbbc3b5 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Mon, 7 May 2018 22:15:47 -0500 Subject: [PATCH] Code beautification --- src/GUI/Plater/Plate2D.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GUI/Plater/Plate2D.cpp b/src/GUI/Plater/Plate2D.cpp index e9f50c5c4..1ec395db9 100644 --- a/src/GUI/Plater/Plate2D.cpp +++ b/src/GUI/Plater/Plate2D.cpp @@ -300,7 +300,8 @@ std::vector Plate2D::scaled_points_to_pixel(const Slic3r::Polyline& pol wxPoint Plate2D::unscaled_point_to_pixel(const wxPoint& in) { const auto& canvas_height {this->GetSize().GetHeight()}; const auto& zero = this->bed_origin; - return wxPoint(in.x * this->scaling_factor + zero.x, + return wxPoint( + in.x * this->scaling_factor + zero.x, in.y * this->scaling_factor + (zero.y - canvas_height)); }