Commit 5c3c4207 authored by Patrick Storz's avatar Patrick Storz 🦄

Fix children not properly inheriting font-size when ungrouping

Only the value was merged into the child's style but not
type, unit or literal specifiers.

As type defaults to SP_FONT_SIZE_LITERAL with SP_CSS_FONT_SIZE_MEDIUM
this resulted in removal of font-size upon ungrouping.

Fixed Bugs:
  - https://bugs.launchpad.net/inkscape/+bug/1518575
  - https://bugs.launchpad.net/inkscape/+bug/1733651
parent 445cca40
Pipeline #30781212 passed with stages
in 31 minutes
......@@ -2312,6 +2312,9 @@ SPIFontSize::merge( const SPIBase* const parent ) {
// Computed value same as parent
set = p->set;
inherit = p->inherit;
type = p->type;
unit = p->unit;
literal = p->literal;
value = p->value;
computed = p->computed; // Just to be sure
} else if ( type == SP_FONT_SIZE_LENGTH &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment