[Libreoffice-bugs] [Bug 111769] Black is set as New color in Area tab when a table with multiple colors in its cells is selected
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun Oct 22 00:10:16 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=111769
--- Comment #19 from Tamás Zolnai <zolnaitamas2000 at gmail.com> ---
Ok, then. So as I see, we can agree in not selecting any of the buttons when we
have an ambigous fill. The relevant difference between selecting "None" or none
of the buttons is that in the first case transparent color is applied. So I
guess Jay also happy with the second case.
@Ekansh Jha: If you are still interested in working on this easy hack, that is
the behavior we need to have (selecting none of the buttons on area /
background page).
In SvxAreaTabPage::ActivatePage() method you can see the algorithm which
selects the button based on fill type. When we have ambigous fill properties
you need to skip setting any button. Also make sure that in
SvxAreaTabPage::DeactivatePage() method SfxItemSet is not changed, when no
button is selected.
To find out how to check whether fill properties are ambigous, I suggest to
check what happens on Color page (SvxColorTabPage class). Since it behaves
differently in case of ambigouity, I expect this information is there in some
form.
--
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/20171022/7c4b0041/attachment.html>
More information about the Libreoffice-bugs
mailing list