summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/editsh.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-01-02 19:16:54 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-01-04 14:05:46 +0000
commitbd5cc6a50f2acdabc1c93bd49ce52c79a70c2144 (patch)
tree732a2735087656511f65fb0f9b3fa9396c48e373 /sc/source/ui/view/editsh.cxx
parentef533553559fe09b4afab651fc692885d1acf4ed (diff)
Related: tdf#150339 remove SID_ATTR_COLOR_STR
re: https://gerrit.libreoffice.org/c/core/+/144866 "ColorString is not needed anymore (we used that in LOK previously)." Change-Id: I50a2f0e2ad254afb8ede33b05c89ae40bfeb4d3b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144967 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/view/editsh.cxx')
-rw-r--r--sc/source/ui/view/editsh.cxx16
1 files changed, 1 insertions, 15 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index 2b36efa11ec8..52566f45d7b8 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -968,21 +968,7 @@ void ScEditShell::ExecuteAttr(SfxRequest& rReq)
{
if (pArgs)
{
- if ( const SfxStringItem* pColorStringItem = pArgs->GetItemIfSet( SID_ATTR_COLOR_STR, false ) )
- {
- Color aColor;
- OUString sColor = pColorStringItem->GetValue();
- if ( sColor == "transparent" )
- aColor = COL_TRANSPARENT;
- else
- aColor = Color( ColorTransparency, sColor.toInt32( 16 ) );
-
- aSet.Put( SvxColorItem( aColor, EE_CHAR_COLOR ) );
- }
- else
- {
- aSet.Put( pArgs->Get( pArgs->GetPool()->GetWhich( nSlot ) ) );
- }
+ aSet.Put( pArgs->Get( pArgs->GetPool()->GetWhich( nSlot ) ) );
rBindings.Invalidate( nSlot );
}
}