Bug 78816 - Formatting Toolbar - Font/Background color - no color selector shown
Summary: Formatting Toolbar - Font/Background color - no color selector shown
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
4.2.4.2 release
Hardware: Other All
: medium normal
Assignee: Maxim Monastirsky
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-17 09:15 UTC by Dominik
Modified: 2014-05-27 20:28 UTC (History)
3 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 Dominik 2014-05-17 09:15:27 UTC
When clicking on the Font or Background color triangle to open the selector, nothing visible happens. 
The background is changed to black if the button is pressed in the center, so basic functionality is given.
Comment 1 Jorendc 2014-05-17 09:38:24 UTC
Can you please attach a screenshot of this behavior?

Thanks,
Joren
Comment 2 Jorendc 2014-05-17 09:45:12 UTC
Aha, wait. I can reproduce this behavior, tested using Windows 8.1 with LibreOffice 4.2.4.2

Steps to reproduce:
* Create a new database (just click through the startup configuration)
* Click on 'Reports' at the left 'sidebar'
* Create report in design view (or something like that)
* Draw a textbox (using on of the icons at the toolbar)
* Select textbox
* Click on font or background color icon in the toolbar.

Kind regards,
Joren
Comment 3 Maxim Monastirsky 2014-05-18 14:22:24 UTC
Confirmed on master (558618e0dd75424bd2d7134ba536ee78bdb4a26a) under Fedora 20. There is also a problem with the font name combobox that doesn't appear, showing a malfunctioning button instead (the first one on that toolbar).

In fact there's a lot of common with these two problems. Both the color control and the font name control are based on SfxToolBoxControl. So there seems to be some problem with initializing such controls. For comparison, the font size combobox isn't based on SfxToolBoxControl, as is UNO component, and it loads perfectly.
Comment 4 Jorendc 2014-05-18 14:33:59 UTC
(In reply to comment #3)
> There is also a problem with the font name combobox that doesn't appear,
> showing a malfunctioning button instead (the first one on that toolbar).

Correct, that is reported in bug 78815 :-).

Kind regards,
Joren
Comment 5 Maxim Monastirsky 2014-05-19 06:16:09 UTC
(In reply to comment #4)
> Correct, that is reported in bug 78815 :-).
Thanks Joren, so I'll revert the summary.
Comment 6 Dominik 2014-05-23 19:44:52 UTC
works in 4.3 beta 1
Comment 7 Maxim Monastirsky 2014-05-24 20:01:53 UTC
(In reply to comment #6)
> works in 4.3 beta 1
No, it doesn't work yet. Using the color palette does work now, beacuse it was the same problem as in bug 78815. But if you click the button (not the triangle) it will apply a black color instead of the last used. That was the reason I kept this bug open, and didn't mark it as a duplicate of bug 78815.

(BTW I already have a working patch for this for some days, but I'm still looking into other problems discovered while working on this bug.)
Comment 8 Maxim Monastirsky 2014-05-27 20:28:12 UTC
(In reply to comment #7)
> But if you click the button (not the
> triangle) it will apply a black color instead of the last used.
Finally fixed with http://cgit.freedesktop.org/libreoffice/core/commit/?id=426033250db0b9b6344980655ca0be59efe6a6a5.