diff --git a/Polyhedron/demo/Polyhedron/Plugins/PCA/Clipping_box_widget.ui b/Polyhedron/demo/Polyhedron/Plugins/PCA/Clipping_box_widget.ui index d3eb437bf524..220fa76978a9 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PCA/Clipping_box_widget.ui +++ b/Polyhedron/demo/Polyhedron/Plugins/PCA/Clipping_box_widget.ui @@ -18,7 +18,7 @@ - 1 + 0 diff --git a/Polyhedron/demo/Polyhedron/Scene_plane_item.cpp b/Polyhedron/demo/Polyhedron/Scene_plane_item.cpp index 630f559f4854..349114f85b4c 100644 --- a/Polyhedron/demo/Polyhedron/Scene_plane_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_plane_item.cpp @@ -1,5 +1,7 @@ #include "Scene_plane_item.h" #include +#include + using namespace CGAL::Three; @@ -186,7 +188,10 @@ Scene_plane_item* Scene_plane_item::clone() const { } QString Scene_plane_item::toolTip() const { - const CGAL::qglviewer::Vec& pos = frame->position(); + + const CGAL::qglviewer::Vec offset = static_cast(CGAL::QGLViewer::QGLViewerPool().first())->offset(); + + const CGAL::qglviewer::Vec& pos = frame->position() - offset; const CGAL::qglviewer::Vec& n = frame->inverseTransformOf(CGAL::qglviewer::Vec(0.f, 0.f, 1.f)); return tr("

%1 (mode: %2, color: %3)
")