Skip to content

Commit

Permalink
Minor bug in PartDesignGui::ViewProviderPipe
Browse files Browse the repository at this point in the history
Assert excludes any "Edge1"
  • Loading branch information
AjinkyaDahale committed Feb 1, 2017
1 parent 2780edd commit 7a9fecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/PartDesign/Gui/ViewProviderPipe.cpp
Expand Up @@ -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
}
Expand Down

0 comments on commit 7a9fecb

Please sign in to comment.