From 6ea3ad3ed95758e258d9de53dd6e0f920cedb564 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 17 Aug 2018 08:10:16 +0200 Subject: [PATCH] do not show dialog of progress indicator for OCCT < 6.9.0 --- src/Mod/Part/Gui/TaskCheckGeometry.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Part/Gui/TaskCheckGeometry.cpp b/src/Mod/Part/Gui/TaskCheckGeometry.cpp index fcd314b263..673a1ee189 100644 --- a/src/Mod/Part/Gui/TaskCheckGeometry.cpp +++ b/src/Mod/Part/Gui/TaskCheckGeometry.cpp @@ -420,7 +420,9 @@ void TaskCheckGeometryResults::goCheck() Handle(Message_ProgressIndicator) theProgress = new BOPProgressIndicator(tr("Check geometry"), Gui::getMainWindow()); theProgress->NewScope("BOP check..."); +#if OCC_VERSION_HEX >= 0x060900 theProgress->Show(); +#endif selectedCount = static_cast(selection.size()); for (it = selection.begin(); it != selection.end(); ++it) @@ -613,6 +615,8 @@ int TaskCheckGeometryResults::goBOPSingleCheck(const TopoDS_Shape& shapeIn, Resu BOPAlgo_ArgumentAnalyzer BOPCheck; #if OCC_VERSION_HEX >= 0x060900 BOPCheck.SetProgressIndicator(theProgress); +#else + Q_UNUSED(theProgress); #endif // BOPCheck.StopOnFirstFaulty() = true; //this doesn't run any faster but gives us less results. BOPCheck.SetShape1(BOPCopy);