summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-06-15 11:15:06 +0200
committerJan Holesovsky <kendy@suse.cz>2013-06-15 14:42:09 +0200
commit4f036439f7597d33a9f90860d9a5b6ac28b270c7 (patch)
tree2363cebebda7fef9ab93932907c4bc267fe5b04e /svx
parentedbca87dea4d7ab7c70039579f90c6d22e076b1b (diff)
Kill unused TBX_UPDATER_MODE_NONE.
Change-Id: I894eb05d68f3a92a10d3ce3120ae0a521b65d2f4
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/tbxcolorupdate.cxx40
1 files changed, 15 insertions, 25 deletions
diff --git a/svx/source/tbxctrls/tbxcolorupdate.cxx b/svx/source/tbxctrls/tbxcolorupdate.cxx
index 179af8e6c907..5a9273233b99 100644
--- a/svx/source/tbxctrls/tbxcolorupdate.cxx
+++ b/svx/source/tbxctrls/tbxcolorupdate.cxx
@@ -125,36 +125,26 @@ namespace svx
pBmpAcc->SetFillColor( maCurColor = aColor );
- if( TBX_UPDATER_MODE_CHAR_COLOR_NEW == mnDrawMode || TBX_UPDATER_MODE_NONE == mnDrawMode )
+ if( TBX_UPDATER_MODE_CHAR_COLOR_NEW == mnDrawMode )
{
- if( TBX_UPDATER_MODE_CHAR_COLOR_NEW == mnDrawMode )
+ if( maBmpSize.Width() <= 16 )
+ maUpdRect = Rectangle( Point( 0,12 ), Size( maBmpSize.Width(), 4 ) );
+ else if(76 == maBmpSize.Width() && 12 == maBmpSize.Height())
{
- if( maBmpSize.Width() <= 16 )
- maUpdRect = Rectangle( Point( 0,12 ), Size( maBmpSize.Width(), 4 ) );
- else if(76 == maBmpSize.Width() && 12 == maBmpSize.Height())
- {
- maUpdRect.Left() = 22;
- maUpdRect.Top() = 2;
- maUpdRect.Right() = 73;
- maUpdRect.Bottom() = 9;
- }
- else if(30 == maBmpSize.Width() && 16 == maBmpSize.Height())
- {
- maUpdRect.Left() = 17;
- maUpdRect.Top() = 2;
- maUpdRect.Right() = 27;
- maUpdRect.Bottom() = 13;
- }
- else
- maUpdRect = Rectangle( Point( 1, maBmpSize.Height() - 7 ), Size( maBmpSize.Width() - 2 ,6 ) );
+ maUpdRect.Left() = 22;
+ maUpdRect.Top() = 2;
+ maUpdRect.Right() = 73;
+ maUpdRect.Bottom() = 9;
}
- else
+ else if(30 == maBmpSize.Width() && 16 == maBmpSize.Height())
{
- if( maBmpSize.Width() <= 16 )
- maUpdRect = Rectangle( Point( 7, 7 ), Size( 8, 8 ) );
- else
- maUpdRect = Rectangle( Point( maBmpSize.Width() - 12, maBmpSize.Height() - 12 ), Size( 11, 11 ) );
+ maUpdRect.Left() = 17;
+ maUpdRect.Top() = 2;
+ maUpdRect.Right() = 27;
+ maUpdRect.Bottom() = 13;
}
+ else
+ maUpdRect = Rectangle( Point( 1, maBmpSize.Height() - 7 ), Size( maBmpSize.Width() - 2 ,6 ) );
pBmpAcc->DrawRect( maUpdRect );