mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
prevent share string formatting from being overwritten during consumption
This commit is contained in:
parent
f0b1e789a3
commit
b851d1c143
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue
Block a user