From 902e841a0ae698f73f5d966801a5bd0c23e542f0 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Wed, 14 Jun 2017 23:40:30 +0200 Subject: [PATCH] preprocessor: fix bug: check whether second string in pair is empty. closes #1469 (cherry picked from commit 2cbb619f6fd022a3a4882dc5d073a6a8882f9e86) --- preprocessor/ModelTree.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preprocessor/ModelTree.cc b/preprocessor/ModelTree.cc index 9bfb30eaf..52de1aa17 100644 --- a/preprocessor/ModelTree.cc +++ b/preprocessor/ModelTree.cc @@ -1588,7 +1588,7 @@ ModelTree::writeLatexModelFile(const string &basename, ExprNodeOutputType output content_output << iteqt->second.first; - if (!empty(iteqt->second.second)) + if (iteqt->second.second.empty()) content_output << "= `" << iteqt->second.second << "'"; wrote_eq_tag = true; -- GitLab