summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2023-07-06 13:44:07 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2023-07-07 09:51:26 +0200
commit371f9131f15e41b1f121f26478ab997d13afc56a (patch)
tree4086213fd9c0642f9adf3c23f5c05e1841ebfc02 /reportdesign
parent1652fe3ece911af37b6d3a65d452cbcf86513c42 (diff)
reportdesign: Fix setting font color from the toolbar dropdown
Seems like a recent regression from changing the argument name in PaletteManager::DispatchColorCommand. Change-Id: I2756a2c615398d40b15991cad2982cc80d6f6a99 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154150 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index cc3a096b3046..873d17c353c1 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -1469,8 +1469,7 @@ void OReportController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >
case SID_ATTR_CHAR_COLOR2:
case SID_ATTR_CHAR_COLOR_EXT:
{
- const SequenceAsHashMap aMap(aArgs);
- const util::Color aColor = aMap.getUnpackedValueOrDefault(PROPERTY_FONTCOLOR,util::Color());
+ const util::Color aColor( lcl_extractBackgroundColor( aArgs ) );
impl_setPropertyAtControls_throw(RID_STR_UNDO_CHANGEFONT,PROPERTY_CHARCOLOR,uno::Any(aColor),aArgs);
bForceBroadcast = true;
}