diff options
author | 2018-07-22 03:22:31 +1000 | |
---|---|---|
committer | 2018-07-22 03:22:31 +1000 | |
commit | dce955c68db3cfc700cae11743ad966036faa64f (patch) | |
tree | 2f68af92c4321a474449be8cde7e78ffb1ca58f3 /src/lib/util/xmlfile.cpp | |
parent | 10f9ec6fcc71b7ed498ce2e825c1b83ee0f53eec (diff) |
rendlay: allow user variables and repetition in layouts, also add a few more predefined variables
Diffstat (limited to 'src/lib/util/xmlfile.cpp')
-rw-r--r-- | src/lib/util/xmlfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |