diff options
author | Niklas Nebel <nn@openoffice.org> | 2002-05-29 17:10:31 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2002-05-29 17:10:31 +0000 |
commit | fd3bfb798e4e47d04001d67388fd9b34fad7bef8 (patch) | |
tree | 285db9f8aff9a7a4dda9bca8647c6d202e570e25 /sc/source/ui/cctrl | |
parent | 103bc6c8fca1cb91d5eba30896e267b54b22f833 (diff) |
#99643# use high contrast image if necessary
Diffstat (limited to 'sc/source/ui/cctrl')
-rw-r--r-- | sc/source/ui/cctrl/tbinsert.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/ui/cctrl/tbinsert.cxx b/sc/source/ui/cctrl/tbinsert.cxx index a97ed2e90105..1967d1dc8dca 100644 --- a/sc/source/ui/cctrl/tbinsert.cxx +++ b/sc/source/ui/cctrl/tbinsert.cxx @@ -2,9 +2,9 @@ * * $RCSfile: tbinsert.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: mba $ $Date: 2001-06-11 08:29:22 $ + * last change: $Author: nn $ $Date: 2002-05-29 18:10:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -115,7 +115,9 @@ void __EXPORT ScTbxInsertCtrl::StateChanged( USHORT nSID, SfxItemState eState, { nLastSlotId = pItem->GetValue(); USHORT nImageId = nLastSlotId ? nLastSlotId : GetId(); - Image aImage = GetBindings().GetImageManager()->GetImage( nImageId, SC_MOD() ); + Image aImage = GetBindings().GetImageManager()->GetImage( nImageId, + GetToolBox().GetDisplayBackground().GetColor().IsDark(), + SC_MOD() ); GetToolBox().SetItemImage(GetId(), aImage); } } |