Kaydet (Commit) 224b2359 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#78535: Don't process borders of 0 width.

Or they would get drawn for real.

Change-Id: Iec24e70a80ff8aa1ef7512e71249a99243297c4e
üst 5e2918bc
......@@ -1681,6 +1681,8 @@ void ScOutputData::DrawRotatedFrame( const Color* pForceColor )
const svx::frame::Style noStyle;
// Horizontal lines
if (aTopLine.Prim() || aTopLine.Secn())
{
long nUpperRotate = lcl_getRotate( mpDoc, nTab, nX, nY - 1 );
pProcessor->process( svx::frame::CreateBorderPrimitives(
aPoints[bLayoutRTL?1:0], aPoints[bLayoutRTL?0:1], aTopLine,
......@@ -1691,7 +1693,10 @@ void ScOutputData::DrawRotatedFrame( const Color* pForceColor )
svx::frame::Style(),
aRightLine,
pForceColor, nUpperRotate, nAttrRotate ) );
}
if (aBottomLine.Prim() || aBottomLine.Secn())
{
long nLowerRotate = lcl_getRotate( mpDoc, nTab, nX, nY + 1 );
pProcessor->process( svx::frame::CreateBorderPrimitives(
aPoints[bLayoutRTL?2:3], aPoints[bLayoutRTL?3:2], aBottomLine,
......@@ -1702,8 +1707,11 @@ void ScOutputData::DrawRotatedFrame( const Color* pForceColor )
svx::frame::Style(),
svx::frame::Style(),
pForceColor, 18000 - nAttrRotate, 18000 - nLowerRotate ) );
}
// Vertical slanted lines
if (aLeftLine.Prim() || aLeftLine.Secn())
{
long nLeftRotate = lcl_getRotate( mpDoc, nTab, nX - 1, nY );
pProcessor->process( svx::frame::CreateBorderPrimitives(
aPoints[0], aPoints[3], aLeftLine,
......@@ -1714,7 +1722,10 @@ void ScOutputData::DrawRotatedFrame( const Color* pForceColor )
svx::frame::Style(),
svx::frame::Style(),
pForceColor, nAttrRotate, nLeftRotate ) );
}
if (aRightLine.Prim() || aRightLine.Secn())
{
long nRightRotate = lcl_getRotate( mpDoc, nTab, nX + 1, nY );
pProcessor->process( svx::frame::CreateBorderPrimitives(
aPoints[1], aPoints[2], aRightLine,
......@@ -1727,6 +1738,7 @@ void ScOutputData::DrawRotatedFrame( const Color* pForceColor )
pForceColor, 18000 - nRightRotate, 18000 - nAttrRotate ) );
}
}
}
nPosX += nColWidth * nLayoutSign;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment