diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-14 16:07:50 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-19 17:56:24 +0100 |
commit | 9503970fda80acabdead01df43d95fed7cd2d3df (patch) | |
tree | cfa68aeb673c587ad76a0cf393168f93a4255b32 | |
parent | d1433fd922a3b55127543567dc96ffa6d15c13d4 (diff) |
sc: don't draw the slanted border twice at all tp remove visual side effects
-rw-r--r-- | sc/source/ui/view/output.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx index 800c2b7243a2..ad6fd2a8e5f3 100644 --- a/sc/source/ui/view/output.cxx +++ b/sc/source/ui/view/output.cxx @@ -1577,22 +1577,20 @@ void ScOutputData::DrawRotatedFrame( const Color* pForceColor ) { pPattern = rInfo.pPatternAttr; pCondSet = rInfo.pConditionSet; - SvxRotateMode eRotMode = (SvxRotateMode)((const SvxRotateModeItem&) - pPattern->GetItem(ATTR_ROTATE_MODE, pCondSet)).GetValue(); size_t nCol = lclGetArrayColFromCellInfoX( nArrX, nX1, nX2, bLayoutRTL ); // horizontal: angrenzende Linie verlaengern // (nur, wenn die gedrehte Zelle eine Umrandung hat) sal_uInt16 nDir = rInfo.nRotateDir; - if ( rArray.GetCellStyleTop( nCol, nRow ).Prim() && eRotMode != SVX_ROTATE_MODE_TOP ) + if ( rArray.GetCellStyleTop( nCol, nRow ).Prim() ) { svx::frame::Style aStyle( lcl_FindHorLine( pDoc, nX, nY, nTab, nDir, sal_True ), nPPTY ); rArray.SetCellStyleTop( nCol, nRow, aStyle ); if( nRow > 0 ) rArray.SetCellStyleBottom( nCol, nRow - 1, aStyle ); } - if ( rArray.GetCellStyleBottom( nCol, nRow ).Prim() && eRotMode != SVX_ROTATE_MODE_BOTTOM ) + if ( rArray.GetCellStyleBottom( nCol, nRow ).Prim() ) { svx::frame::Style aStyle( lcl_FindHorLine( pDoc, nX, nY, nTab, nDir, false ), nPPTY ); rArray.SetCellStyleBottom( nCol, nRow, aStyle ); |