summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-02-20 12:32:51 +0100
committerMichael Stahl <mstahl@redhat.com>2014-02-20 12:52:07 +0100
commit9fb9fc301502c2762ad4a8059d8d1c818d2843db (patch)
treef8d337d1ea56474ff0191b2cdd79337cfde65e99
parentc96da60124652bac4bd8d2ebf18be67e1365d89d (diff)
fdo#75118: actually these are floats, compare with approxEqual
Change-Id: Ib195af3ebd5f602761d1660abb1798d72d0f352d
-rw-r--r--sw/source/core/layout/paintfrm.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 169a35800f53..8fa85c6fa828 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -2596,7 +2596,8 @@ void SwTabFrmPainter::PaintLines(OutputDevice& rDev, const SwRect& rRect) const
aPaintStart.Y() -= nTwipYCorr;
aPaintEnd.Y() -= nTwipYCorr;
- if (aStyles[0].Prim() <= 0 && aStyles[0].Secn() <= 0)
+ 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
}