summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-07-15 17:01:35 +0200
committerEike Rathke <erack@redhat.com>2014-07-15 17:31:24 +0200
commite57d98227da6c15c9970fc64658ffa3dcf9115fc (patch)
treed23987d57649554349157066a37cb45a7266df26 /sc
parentffe7faf8950eba541606d22ce7a50483fd4c84f4 (diff)
CID#1000519 Logically dead code (DEADCODE)
Change-Id: I785901d6694fe914325965136852ed3098e59434
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/attarray.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx
index 3cfc9be6ab41..8cea1ace26da 100644
--- a/sc/source/core/data/attarray.cxx
+++ b/sc/source/core/data/attarray.cxx
@@ -1112,9 +1112,8 @@ bool ScAttrArray::ApplyFrame( const SvxBoxItem* pBoxItem,
{
if( bLeft && nDistRight==0)
{
- if ( bLeft ? pBoxInfoItem->IsValid(VALID_LEFT) : pBoxInfoItem->IsValid(VALID_VERT) )
- aNewFrame.SetLine( bLeft ? pBoxItem->GetLeft() : pBoxInfoItem->GetVert(),
- BOX_LINE_RIGHT );
+ if ( pBoxInfoItem->IsValid(VALID_LEFT) )
+ aNewFrame.SetLine( pBoxItem->GetLeft(), BOX_LINE_RIGHT );
if ( (nDistRight==0) ? pBoxInfoItem->IsValid(VALID_RIGHT) : pBoxInfoItem->IsValid(VALID_VERT) )
aNewFrame.SetLine( (nDistRight==0) ? pBoxItem->GetRight() : pBoxInfoItem->GetVert(),
BOX_LINE_LEFT );