From 6255858d210dab443da55718c3b78a3b00f7ad31 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

---
 ModelTree.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ModelTree.cc b/ModelTree.cc
index 9bfb30ea..52de1aa1 100644
--- a/ModelTree.cc
+++ b/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