Minor bug in PartDesignGui::ViewProviderPipe

Assert excludes any "Edge1"
This commit is contained in:
Ajinkya Dahale 2017-02-01 09:08:05 +05:30 committed by GitHub
parent 2780edd903
commit 7a9fecbbf0

View File

@ -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
}