Skip to content

Commit

Permalink
prevent share string formatting from being overwritten during consump…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
tfussell committed May 9, 2017
1 parent f0b1e78 commit b851d1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/detail/serialization/xlsx_consumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<double>("val"));
Expand Down

0 comments on commit b851d1c

Please sign in to comment.