Skip to content

Commit

Permalink
Merge pull request #793 from Jehops/is_root
Browse files Browse the repository at this point in the history
Use '!iterator->is_root()' instead of 'iterator->is_root() == nil'
  • Loading branch information
stevenweaver authored May 10, 2018
2 parents 51d43bf + c72e788 commit 3cc9c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/calcnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5932,7 +5932,7 @@ void _TheTree::TreePSRecurse (node<nodeCoord>* iterator, _String&res, _Parame
res << "0 0 0 setrgbcolor\n";
}

if (iterator->is_root() == nil && layout == 1) {
if (!iterator->is_root() && layout == 1) {
res << (_String (-iterator->in_object.h) & ' ' & _String (-iterator->in_object.v) & " translate\n");
}
}
Expand Down

0 comments on commit 3cc9c72

Please sign in to comment.