diff --git a/source/detail/serialization/xlsx_consumer.cpp b/source/detail/serialization/xlsx_consumer.cpp index 23b8e9bc..5dacb519 100644 --- a/source/detail/serialization/xlsx_consumer.cpp +++ b/source/detail/serialization/xlsx_consumer.cpp @@ -744,7 +744,11 @@ struct Worksheet_Parser { for (auto &attr : parser->attribute_map()) { - if (attr.first.name() == "ph") + if (attr.first.name() == "r") + { + ref = Cell_Reference(row_arg, attr.second.value); + } + else if (attr.first.name() == "ph") { is_phonetic = is_true(attr.second.value); } @@ -760,10 +764,6 @@ struct Worksheet_Parser { type = from_string(attr.second.value); } - else if (attr.first.name() == "r") - { - ref = Cell_Reference(row_arg, attr.second.value); - } } int level = 1; // nesting level while (level > 0)