https://bugs.documentfoundation.org/show_bug.cgi?id=103331
Kevin Suo <suokunl...@126.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |himajin100...@gmail.com, | |suokunl...@126.com --- Comment #8 from Kevin Suo <suokunl...@126.com> --- See sc/source/filter/orcus/interface.cxx:1320: ScOrcusStyles::font::font(): mnSize(10), maColor(COL_BLACK), mbBold(false), mbItalic(false), mbHasFontAttr(false), mbHasUnderlineAttr(false), mbHasStrikeout(false), meUnderline(LINESTYLE_NONE), maUnderlineColor(COL_WHITE), meStrikeout(STRIKEOUT_NONE) { } and void ScOrcusStyles::set_font_bold(bool b) { maCurrentFont.mbBold = b; maCurrentFont.mbHasFontAttr = true; } void ScOrcusStyles::set_font_italic(bool b) { maCurrentFont.mbItalic = b; maCurrentFont.mbHasFontAttr = true; } The mbBold and mbItalic is set default to false (rather than unset). As a result, if a result, if a child style inherit from a parent and the child did not set a font weight bold attribute, then the font weight for the child is explicitly set to not-bold rather than inherited. Not sure whether it is a bug in orcus or in libreoffice. One temporary solution is to set explicitly bold and italic attributes in the sc/res/xml/styles.xml for the child styles. -- You are receiving this mail because: You are the assignee for the bug.