Merge pull request #490 from AjinkyaDahale/patch-1
Minor bug in PartDesignGui::ViewProviderPipe
This commit is contained in:
commit
6c3b78e97b
|
@ -141,7 +141,7 @@ void ViewProviderPipe::highlightReferences(const bool on, bool auxillery)
|
||||||
|
|
||||||
for (std::string e : edges) {
|
for (std::string e : edges) {
|
||||||
int idx = std::stoi(e.substr(4)) - 1;
|
int idx = std::stoi(e.substr(4)) - 1;
|
||||||
assert ( idx > 0 );
|
assert ( idx >= 0 );
|
||||||
if ( idx < (ssize_t) colors.size() )
|
if ( idx < (ssize_t) colors.size() )
|
||||||
colors[idx] = App::Color(1.0,0.0,1.0); // magenta
|
colors[idx] = App::Color(1.0,0.0,1.0); // magenta
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user