summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/layout/paintfrm.cxx21
1 files changed, 9 insertions, 12 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 179330712889..120634e351a8 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -2641,12 +2641,6 @@ void SwTabFrmPainter::PaintLines(OutputDevice& rDev, const SwRect& rRect) const
aPaintStart.Y() -= nTwipYCorr;
aPaintEnd.Y() -= nTwipYCorr;
- if (::rtl::math::approxEqual(aStyles[0].Prim(), 0.0) &&
- ::rtl::math::approxEqual(aStyles[0].Secn(), 0.0))
- {
- continue; // fdo#75118 do not paint zero-width lines
- }
-
// Here comes the painting stuff: Thank you, DR, great job!!!
if (bHori)
{
@@ -4252,7 +4246,8 @@ void SwFlyFrm::Paint(SwRect const& rRect, SwPrintData const*const) const
void SwTabFrm::Paint(SwRect const& rRect, SwPrintData const*const) const
{
- if ( pGlobalShell->GetViewOptions()->IsTable() )
+ const SwViewOption* pViewOption = pGlobalShell->GetViewOptions();
+ if (pViewOption->IsTable())
{
// #i29550#
if ( IsCollapsingBorders() )
@@ -4268,9 +4263,12 @@ void SwTabFrm::Paint(SwRect const& rRect, SwPrintData const*const) const
PaintShadow( rRect, aRect, rAttrs );
}
- // paint lines
- SwTabFrmPainter aHelper( *this );
- aHelper.PaintLines( *pGlobalShell->GetOut(), rRect );
+ if (pViewOption->IsTableBoundaries())
+ {
+ // fdo#75118 Paint border lines only when it's enabled.
+ SwTabFrmPainter aHelper(*this);
+ aHelper.PaintLines(*pGlobalShell->GetOut(), rRect);
+ }
}
SwLayoutFrm::Paint( rRect );
@@ -4283,8 +4281,7 @@ void SwTabFrm::Paint(SwRect const& rRect, SwPrintData const*const) const
aTabRect.Pos() += Frm().Pos();
SwRect aTabOutRect( rRect );
aTabOutRect.Intersection( aTabRect );
- pGlobalShell->GetViewOptions()->
- DrawRect( pGlobalShell->GetOut(), aTabOutRect, COL_LIGHTGRAY );
+ pViewOption->DrawRect( pGlobalShell->GetOut(), aTabOutRect, COL_LIGHTGRAY );
}
((SwTabFrm*)this)->ResetComplete();
}