summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 1da2f75527f2..f154bf291566 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -2906,11 +2906,15 @@ void SvxColorToolBoxControl::Select(sal_uInt16 /*nSelectModifier*/)
}
EnsurePaletteManager();
+ Color aColor = m_xPaletteManager->GetLastColor();
auto aArgs( comphelper::InitPropertySequence( {
{ m_aCommandURL.copy(5), css::uno::makeAny( m_xPaletteManager->GetLastColor().GetColor() ) }
} ) );
Dispatch( aCommand, aArgs );
+
+ OUString sColorName = ("#" + aColor.AsRGBHexString().toAsciiUpperCase());
+ m_xPaletteManager->AddRecentColor(aColor, sColorName);
}
sal_Bool SvxColorToolBoxControl::opensSubToolbar()