diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-18 15:33:43 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-19 17:57:20 +0100 |
commit | 6773a7781189811b9453429152e5c4e04ccf0685 (patch) | |
tree | 961fa8af1bd5936b54171e2b3e578ab2838a208e /drawinglayer | |
parent | 8fa00090f0fbe3185934c1accd91263dd006909b (diff) |
hairline borders were never displayed
Diffstat (limited to 'drawinglayer')
-rwxr-xr-x | drawinglayer/source/primitive2d/borderlineprimitive2d.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx index adb5537eda1c..9738e14b503d 100755 --- a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx @@ -83,7 +83,7 @@ namespace drawinglayer { Primitive2DSequence xRetval; - if(!getStart().equal(getEnd()) && getWidth() > 0) + if(!getStart().equal(getEnd()) && ( isInsideUsed() || isOutsideUsed() ) ) { // get data and vectors const double fWidth(getWidth()); @@ -120,8 +120,8 @@ namespace drawinglayer aLeft, getRGBColorLeft())); - aGap.append( aTmpStart ); - aGap.append( aTmpEnd ); + aGap.append( getStart() - getExtendLeftStart() * aVector ); + aGap.append( getEnd() + getExtendLeftEnd() * aVector ); } else { @@ -165,8 +165,8 @@ namespace drawinglayer aRight, getRGBColorRight())); - aGap.append( aTmpEnd ); - aGap.append( aTmpStart ); + aGap.append( getStart() - getExtendRightStart() * aVector ); + aGap.append( getEnd() + getExtendRightEnd() * aVector ); } else { @@ -226,8 +226,8 @@ namespace drawinglayer if(bIsHairline) { // create hairline primitive - aPolygon.append(aTmpStart); - aPolygon.append(aTmpEnd); + aPolygon.append( getStart() ); + aPolygon.append( getEnd() ); xRetval[0] = Primitive2DReference(new PolygonHairlinePrimitive2D( aPolygon, |