summaryrefslogtreecommitdiff
path: root/sc/source/ui/cctrl
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2002-05-29 17:10:31 +0000
committerNiklas Nebel <nn@openoffice.org>2002-05-29 17:10:31 +0000
commitfd3bfb798e4e47d04001d67388fd9b34fad7bef8 (patch)
tree285db9f8aff9a7a4dda9bca8647c6d202e570e25 /sc/source/ui/cctrl
parent103bc6c8fca1cb91d5eba30896e267b54b22f833 (diff)
#99643# use high contrast image if necessary
Diffstat (limited to 'sc/source/ui/cctrl')
-rw-r--r--sc/source/ui/cctrl/tbinsert.cxx8
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);
}
}