Bug 135335 - UNO API: SwXNumberingRules::getByIndex returns font style name in BulletFontName
Summary: UNO API: SwXNumberingRules::getByIndex returns font style name in BulletFontName
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: ashokemailat
URL:
Whiteboard: target:25.2.0 target:24.8.2
Keywords: difficultyBeginner, easyHack, skillCpp
Depends on:
Blocks:
 
Reported: 2020-07-31 09:36 UTC by Mike Kaganski
Modified: 2024-09-16 10:30 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2020-07-31 09:36:35 UTC
XNumberingRules::getByIndex returns a sequence of css::beans::PropertyValue. One of them is "BulletFontName", which is defined in offapi/com/sun/star/text/NumberingLevel.idl as:

> the name of the font for the symbol. This is only valid if the
> numbering type is com::sun::star::style::NumberingType::CHAR_SPECIAL.

So it's expected that this property has font name (e.g., OpenSymbol). But in fact, font style is written there in SwXNumberingRules::GetPropertiesForNumFormat, like "Regular".

Obviously inherited from OOo: https://forum-test.openoffice.org/en/forum/viewtopic.php?f=45&t=28632#p130590.
Comment 1 Xisco Faulí 2020-07-31 16:54:27 UTC
moving to NEW
Comment 2 QA Administrators 2022-08-01 03:27:00 UTC Comment hidden (noise)
Comment 3 QA Administrators 2024-08-01 03:15:51 UTC Comment hidden (noise)
Comment 4 Commit Notification 2024-09-12 16:35:11 UTC
Ashok committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/ca44362491b8f823b4d36cddfd5e6242074cc211

tdf#135335 Use font family name as the value of BulletFontName property

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 ashokemailat 2024-09-12 17:39:34 UTC
Resolved and fixed in Change # 173238.
Comment 6 Commit Notification 2024-09-16 10:30:49 UTC
Ashok committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

https://git.libreoffice.org/core/commit/14db0b8da3565e3e91362c5f6aeb23b34888a8cc

tdf#135335 Use font family name as the value of BulletFontName property

It will be available in 24.8.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.