From 456212918f72954b681f6eca8ba4e8aff890975f Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Mon, 30 Apr 2018 22:16:50 -0500 Subject: [PATCH] Fixed unscale point->pixel rescale function. --- src/GUI/Plater/Plate2D.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/Plater/Plate2D.hpp b/src/GUI/Plater/Plate2D.hpp index 553400a44..5bd57e75f 100644 --- a/src/GUI/Plater/Plate2D.hpp +++ b/src/GUI/Plater/Plate2D.hpp @@ -73,7 +73,7 @@ private: const auto& canvas_height {this->GetSize().GetHeight()}; const auto& zero = this->bed_origin; return wxPoint(in.x * this->scaling_factor + zero.x, - in.x * this->scaling_factor + (zero.y - canvas_height)); + in.y * this->scaling_factor + (zero.y - canvas_height)); } /// Read print bed size from config.