Minor bug in PartDesignGui::ViewProviderPipe
Assert excludes any "Edge1"
This commit is contained in:
parent
2780edd903
commit
7a9fecbbf0
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user