Skip to content

Commit

Permalink
Fixed forward neighbors slider scrolling showing only one color.
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Sep 29, 2024
1 parent 30f3fb2 commit 7b4e916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guilib/src/GraphViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ void GraphViewer::highlightNode(int nodeId, int highlightIndex)
for(int i=0; i<_highlightedNodes.size(); ++i)
{
if(_highlightedNodes[i].second &&
(_highlightedNodes[i].first == nodeId || i == highlightIndex))
(_highlightedNodes[i].second->id() == nodeId || i == highlightIndex))
{
// reset to normal color
_highlightedNodes[i].second->setColor(_nodeColor);
Expand Down

0 comments on commit 7b4e916

Please sign in to comment.