Kaydet (Commit) 2e3b0c5d authored tarafından Jim Raykowski's avatar Jim Raykowski

Remove check for empty color name

In ToolboxButtonColorUpdater::Update(const NamedColor &rNamedColor) if
the color name is empty the check for color name emptiness causes the
tool tip to remain unchanged. This produces an incorrect tool tip.
Better to show either the hex representation of the color or simply
empty. This patch shows the color name as empty. Currently there are not
any colors that I know of that have empty color names but with this
patch we are ready for them :-)

Change-Id: Ia96789b668cb358d7b03904a75e327303411e56d
Reviewed-on: https://gerrit.libreoffice.org/70448
Tested-by: Jenkins
Reviewed-by: 's avatarJim Raykowski <raykowj@gmail.com>
üst c034a7f6
......@@ -75,7 +75,7 @@ namespace svx
void ToolboxButtonColorUpdater::Update(const NamedColor &rNamedColor)
{
Update(rNamedColor.first);
if (!mbWideButton && !rNamedColor.second.isEmpty())
if (!mbWideButton)
{
// Also show the current color as QuickHelpText
OUString colorSuffix = " (%1)";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment