Summary: | same argument name used twice in SID_ATTR_CHAR_COLOR | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Caolán McNamara <caolan.mcnamara> |
Component: | framework | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | momonasmon, szymon.klos, xiscofauli |
Priority: | medium | ||
Version: | 7.3.0.0 alpha0+ | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=144499 | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: |
Description
Caolán McNamara
2021-09-13 09:18:28 UTC
I'm not entirely sure what the right thing to do here should be. The color dropdown will pass an arg of "Color" with a long. I can see that if I change... (SfxStringItem Color SID_ATTR_COLOR_STR, SvxColorItem Color SID_ATTR_CHAR_COLOR) to, e.g. (SfxStringItem ColorString SID_ATTR_COLOR_STR, SvxColorItem Color SID_ATTR_CHAR_COLOR) then the warning goes away and the dropdown works as usual. If I changed the other arg to e.g. (SfxStringItem Color SID_ATTR_COLOR_STR, SvxColorItem FontColor SID_ATTR_CHAR_COLOR) then the dropdown will launch the "format character" dialog instead of changing the color I think SfxStringItem was introduced for online / LOK. I think now it is not needed after some updates. I will check. But in general: "SvxColorItem Color SID_ATTR_CHAR_COLOR" should be not changed as it is the original parameter I think. |