From 7a9fecbbf0ea2ede274f0db43ca7351e2e379bc3 Mon Sep 17 00:00:00 2001 From: Ajinkya Dahale Date: Wed, 1 Feb 2017 09:08:05 +0530 Subject: [PATCH] Minor bug in PartDesignGui::ViewProviderPipe Assert excludes any "Edge1" --- src/Mod/PartDesign/Gui/ViewProviderPipe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/Gui/ViewProviderPipe.cpp b/src/Mod/PartDesign/Gui/ViewProviderPipe.cpp index f6d7b7196..b995f0094 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderPipe.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderPipe.cpp @@ -141,7 +141,7 @@ void ViewProviderPipe::highlightReferences(const bool on, bool auxillery) for (std::string e : edges) { int idx = std::stoi(e.substr(4)) - 1; - assert ( idx > 0 ); + assert ( idx >= 0 ); if ( idx < (ssize_t) colors.size() ) colors[idx] = App::Color(1.0,0.0,1.0); // magenta }