diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-02-20 12:32:51 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-02-20 12:52:07 +0100 |
commit | 9fb9fc301502c2762ad4a8059d8d1c818d2843db (patch) | |
tree | f8d337d1ea56474ff0191b2cdd79337cfde65e99 | |
parent | c96da60124652bac4bd8d2ebf18be67e1365d89d (diff) |
fdo#75118: actually these are floats, compare with approxEqual
Change-Id: Ib195af3ebd5f602761d1660abb1798d72d0f352d
-rw-r--r-- | sw/source/core/layout/paintfrm.cxx | 3 |
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 } |