summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-02-20 12:05:52 +0100
committerMichael Stahl <mstahl@redhat.com>2014-02-20 12:52:07 +0100
commitc96da60124652bac4bd8d2ebf18be67e1365d89d (patch)
tree4eeb3eb9adbbbe4856f5ceaad2cd1c0e7c148652 /svx
parent474b2ff232591442fb22363c82abc66e7e2101a0 (diff)
svx::frame::Style::Set(): typo: subtract if it's _not_ 0
(regression from 2c91cb08d65cd35fa8ef6eaca3677aa82fb58cbe) Change-Id: I9803b630067de26503fceb32b5d7c6a46f352a7a
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/framelink.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/dialog/framelink.cxx b/svx/source/dialog/framelink.cxx
index b220a08be12b..52a992f21593 100644
--- a/svx/source/dialog/framelink.cxx
+++ b/svx/source/dialog/framelink.cxx
@@ -1229,7 +1229,7 @@ void Style::Set( const SvxBorderLine& rBorder, double fScale, sal_uInt16 nMaxWid
// Still too thick? Decrease the line widths.
if( GetWidth() > nMaxWidth )
{
- if (rtl::math::approxEqual(mfPrim, 0.0) && rtl::math::approxEqual(mfPrim, mfSecn))
+ if (!rtl::math::approxEqual(mfPrim, 0.0) && rtl::math::approxEqual(mfPrim, mfSecn))
{
// Both lines equal - decrease both to keep symmetry.
--mfPrim;