diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2013-06-22 16:00:41 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2013-06-22 16:52:34 +0400 |
commit | 15f79efe1522389d52d068d620beaa268aaebdeb (patch) | |
tree | c080dd5e644bdb94c062b74e2ea4f8d0dd5366ce /sc/source | |
parent | d88b434e10ef356d6937da0bcb2b3e33e6ab4bb5 (diff) |
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
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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) ); |