prevent share string formatting from being overwritten during consumption

This commit is contained in:
Thomas Fussell 2017-05-09 09:01:01 -04:00
parent f0b1e789a3
commit b851d1c143

View File

@ -2342,12 +2342,12 @@ rich_text xlsx_consumer::read_rich_text(const xml::qname &parent)
if (run_element == xml::qname(xmlns, "rPr")) if (run_element == xml::qname(xmlns, "rPr"))
{ {
run.second = xlnt::font();
while (in_element(xml::qname(xmlns, "rPr"))) while (in_element(xml::qname(xmlns, "rPr")))
{ {
auto current_run_property_element = expect_start_element(xml::content::simple); auto current_run_property_element = expect_start_element(xml::content::simple);
run.second = xlnt::font();
if (current_run_property_element == xml::qname(xmlns, "sz")) if (current_run_property_element == xml::qname(xmlns, "sz"))
{ {
run.second.get().size(parser().attribute<double>("val")); run.second.get().size(parser().attribute<double>("val"));