From 6bc555c9becf2f1e2484953e84364f5c6ee548c5 Mon Sep 17 00:00:00 2001 From: triplus Date: Sun, 24 Mar 2019 17:18:44 +0100 Subject: [PATCH] Fix for build failure on Ubuntu 16.04 --- src/Gui/MouseSelection.cpp | 4 ++-- src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Gui/MouseSelection.cpp b/src/Gui/MouseSelection.cpp index e5aff0d1e8..5929b5e5fd 100644 --- a/src/Gui/MouseSelection.cpp +++ b/src/Gui/MouseSelection.cpp @@ -390,7 +390,7 @@ int PolyPickerSelection::locationEvent(const SoLocation2Event* const, const QPoi if (polyline.isWorking()) { // check the position -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= 0x050600 qreal dpr = _pcView3D->getGLWidget()->devicePixelRatioF(); #else qreal dpr = 1.0; @@ -608,7 +608,7 @@ int FreehandSelection::locationEvent(const SoLocation2Event* const e, const QPoi if (polyline.isWorking()) { // check the position -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= 0x050600 qreal dpr = _pcView3D->getGLWidget()->devicePixelRatioF(); #else qreal dpr = 1.0; diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index 44bfd7368f..d6acce8812 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -1196,7 +1196,7 @@ bool ViewProviderSketch::mouseMove(const SbVec2s &cursorPos, Gui::View3DInventor } case STATUS_SKETCH_UseRubberBand: { // Here we must use the device-pixel-ratio to compute the correct y coordinate (#0003130) -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= 0x050600 qreal dpr = viewer->getGLWidget()->devicePixelRatioF(); #else qreal dpr = 1;