summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2015-08-23 19:15:14 +0200
committerZolnai Tamás <zolnaitamas2000@gmail.com>2015-08-23 19:15:14 +0200
commit8d933132ab01f0070225fae6cf704c9a1982e8f8 (patch)
tree2fc4fbd5fca773c30f6224caeb54d436bf6596bd
parent9a23428ff030106c4d91ba8b6f3a68ce56b7c428 (diff)
tdf#91969: Parts of paragraph border is missing
...when border is around more than one paragraph Regression from: 16f637dab3c1b5f7ac9eacf2c57347800d3fdf09 Change-Id: Iea9455dd7cc3c301c3e2d5d7903c98d98e515595
-rw-r--r--sw/source/core/layout/paintfrm.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index b3e1f77ac466..db705536ba3b 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -487,13 +487,13 @@ static sal_uInt8 lcl_TryMergeLines(
{
double const fMergeGap(properties.nSPixelSzW + properties.nSHalfPixelSzW); // NOT static!
// A is above/before B
- if( mergeA.second <= mergeB.second &&
+ if( mergeA.second <= mergeB.first &&
mergeA.second + fMergeGap >= mergeB.first )
{
return 1;
}
// B is above/before A
- else if( mergeB.second <= mergeA.second &&
+ else if( mergeB.second <= mergeA.first &&
mergeB.second + fMergeGap >= mergeA.first )
{
return 2;