[Libreoffice-bugs] [Bug 144464] same argument name used twice in SID_ATTR_CHAR_COLOR

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Sep 13 09:26:44 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=144464

Caolán McNamara <caolanm at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |momonasmon at gmail.com,
                   |                            |szymon.klos at collabora.com

--- Comment #1 from Caolán McNamara <caolanm at redhat.com> ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210913/7b6f58f8/attachment.htm>


More information about the Libreoffice-bugs mailing list