From 69531b9e4022517fefd8cf8d3cd02d69fc245285 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Fri, 15 Sep 2023 13:04:30 +0200 Subject: [PATCH] Fix retina coor after drag and drop svg --- src/slic3r/GUI/Plater.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 47c509e90a..401660c713 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1682,7 +1682,10 @@ bool PlaterDropTarget::OnDropFiles(wxCoord x, wxCoord y, const wxArrayString &fi if (file_extension.CmpNoCase(".svg") == 0) { const wxPoint offset = m_plater.GetPosition(); Vec2d mouse_position(x - offset.x, y - offset.y); - return emboss_svg(m_plater, filename,mouse_position); + // Scale for retina displays + const GLCanvas3D *canvas = m_plater.canvas3D(); + canvas->apply_retina_scale(mouse_position); + return emboss_svg(m_plater, filename, mouse_position); } } bool res = m_plater.load_files(filenames);