Merge pull request #490 from AjinkyaDahale/patch-1

Minor bug in PartDesignGui::ViewProviderPipe
This commit is contained in:
wwmayer 2017-02-01 13:51:53 +01:00 committed by GitHub
commit 6c3b78e97b

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
}