diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-31 09:25:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-31 09:35:34 +0100 |
commit | 6f11653287ad41df935bf25ffd6ffe8e7acb3bb1 (patch) | |
tree | 5b5beb327402a60079bf44fcc93f2f6337d63223 /cui | |
parent | 2e31a37b87397e6d77cbffc127a0998f54e7f35c (diff) |
Resolves: tdf#98097 no tooltip for colors in "Recent" colors area
cause the tip is the color name and that's not stored, so store
the name when we have one, generate a #rrggbb if there isn't one
and on loading the names, "repair" the names if the names didnt't
exist because this option didn't exist when the colors were last
saved
Change-Id: I33d373081e8a5a46ac585bc55fe449dba0519f99
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/tpcolor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx index 696379c76564..32c43f8199be 100644 --- a/cui/source/tabpages/tpcolor.cxx +++ b/cui/source/tabpages/tpcolor.cxx @@ -315,7 +315,7 @@ bool SvxColorTabPage::FillItemSet( SfxItemSet* rSet ) if( ( nDlgType != 0 ) || ( *pPageType == PageType::Color && !*pbAreaTP ) ) { - maPaletteManager.AddRecentColor( aCurrentColor ); + maPaletteManager.AddRecentColor(aCurrentColor, OUString("#") + aCurrentColor.AsRGBHexString().toAsciiUpperCase()); rSet->Put( XFillColorItem( OUString(), aCurrentColor ) ); rSet->Put( XFillStyleItem( drawing::FillStyle_SOLID ) ); } |