From b851d1c143300ea890992104b259e5bf3c63bb6f Mon Sep 17 00:00:00 2001 From: Thomas Fussell Date: Tue, 9 May 2017 09:01:01 -0400 Subject: [PATCH] prevent share string formatting from being overwritten during consumption --- source/detail/serialization/xlsx_consumer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/detail/serialization/xlsx_consumer.cpp b/source/detail/serialization/xlsx_consumer.cpp index 0b5762e7..b9b557c9 100644 --- a/source/detail/serialization/xlsx_consumer.cpp +++ b/source/detail/serialization/xlsx_consumer.cpp @@ -2342,12 +2342,12 @@ rich_text xlsx_consumer::read_rich_text(const xml::qname &parent) if (run_element == xml::qname(xmlns, "rPr")) { + run.second = xlnt::font(); + while (in_element(xml::qname(xmlns, "rPr"))) { auto current_run_property_element = expect_start_element(xml::content::simple); - run.second = xlnt::font(); - if (current_run_property_element == xml::qname(xmlns, "sz")) { run.second.get().size(parser().attribute("val"));