From 15f79efe1522389d52d068d620beaa268aaebdeb Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Sat, 22 Jun 2013 16:00:41 +0400 Subject: kill TBX_UPDATER_MODE_* commit 4f036439f7597d33a9f90860d9a5b6ac28b270c7 "Kill unused TBX_UPDATER_MODE_NONE." removed TBX_UPDATER_MODE_NONE, but it was actually used, but written as literal 0 in ctor (default value for nMode). Worse, TBX_UPDATER_MODE_NONE meant "draw a square color mark" (!) and after removing it color-marks were not drawn for some buttons, e.g. frame color button. This patch makes use of TBX_UPDATER_MODE_CHAR_COLOR_NEW (which means "draw a rectangle color mark") everywhere, TBX_UPDATER_MODE_CHAR_COLOR and TBX_UPDATER_MODE_CHAR_BACKGROUND were unused. Change-Id: I7452bf73227cd7038e5ea9ab740745125ca079b4 --- sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source/ui/sidebar') diff --git a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx index fbb623678e8d..332b72d884c4 100644 --- a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx +++ b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx @@ -221,10 +221,10 @@ CellAppearancePropertyPanel::CellAppearancePropertyPanel( mpFillColorUpdater.reset( new ::svx::ToolboxButtonColorUpdater(SID_ATTR_BRUSH, mpTBFillColor->GetItemId( UNO_BACKGROUNDCOLOR ), - mpTBFillColor, TBX_UPDATER_MODE_CHAR_COLOR_NEW) ); + mpTBFillColor) ); mpLineColorUpdater.reset( new ::svx::ToolboxButtonColorUpdater(SID_FRAME_LINECOLOR, mpTBLineColor->GetItemId( UNO_FRAMELINECOLOR ), - mpTBLineColor, TBX_UPDATER_MODE_CHAR_COLOR_NEW) ); + mpTBLineColor) ); mpCellBorderUpdater.reset( new CellBorderUpdater( mpTBCellBorder->GetItemId( UNO_SETBORDERSTYLE ), *mpTBCellBorder) ); -- cgit