From dce955c68db3cfc700cae11743ad966036faa64f Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 22 Jul 2018 03:22:31 +1000 Subject: rendlay: allow user variables and repetition in layouts, also add a few more predefined variables --- src/lib/util/xmlfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/util/xmlfile.cpp') diff --git a/src/lib/util/xmlfile.cpp b/src/lib/util/xmlfile.cpp index d96c5913728..1014a7b245c 100644 --- a/src/lib/util/xmlfile.cpp +++ b/src/lib/util/xmlfile.cpp @@ -598,7 +598,7 @@ int data_node::get_attribute_int(const char *attribute, int defvalue) const stream >> std::hex >> uvalue; result = int(uvalue); } - else if (string[0] == '0' && string[1] == 'x') + else if ((string[0] == '0') && ((string[1] == 'x') || (string[1] == 'X'))) { stream.str(&string[2]); unsigned uvalue; -- cgit v1.2.3-70-g09d2