From 6e30c60afc98630c7cde389fe64c6fd3aa87ca0d Mon Sep 17 00:00:00 2001 From: bubnikv Date: Tue, 11 Dec 2018 18:56:23 +0100 Subject: [PATCH] Fixed compilation on OSX. --- src/libslic3r/Point.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Point.hpp b/src/libslic3r/Point.hpp index 82df93cc1..d92667362 100644 --- a/src/libslic3r/Point.hpp +++ b/src/libslic3r/Point.hpp @@ -193,7 +193,7 @@ public: const Point *pt = m_point_accessor(value); if (pt != nullptr) { // Range of fragment starts around grid_corner, close to pt. - auto range = m_map.equal_range(Point(pt->x>>m_grid_log2, pt->y>>m_grid_log2)); + auto range = m_map.equal_range(Point((*pt)(0)>>m_grid_log2, (*pt)(1)>>m_grid_log2)); // Remove the first item. for (auto it = range.first; it != range.second; ++ it) { if (it->second == value) {