From c72e788fae460ae32812318014aa6bbdbde5c6f0 Mon Sep 17 00:00:00 2001 From: Joseph Mingrone Date: Thu, 10 May 2018 18:16:03 -0300 Subject: [PATCH] Use '!iterator->is_root()' instead of 'iterator->is_root() == nil' This fixes a clang compiler error. --- src/core/calcnode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/calcnode.cpp b/src/core/calcnode.cpp index 33520240c..3e68fb47b 100644 --- a/src/core/calcnode.cpp +++ b/src/core/calcnode.cpp @@ -5932,7 +5932,7 @@ void _TheTree::TreePSRecurse (node* 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"); } }