Kaydet (Commit) 49bd0e4e authored tarafından Michael Stahl's avatar Michael Stahl

fdo#48647: drawinglayer: fix double hairline borders:

Clipping the border polygon to the region defined by the Extends is
sufficient to create a nice looking 1 twip double border in Writer.
(regression from 0f0896c2)
üst 8adec08d
...@@ -114,9 +114,14 @@ namespace drawinglayer ...@@ -114,9 +114,14 @@ namespace drawinglayer
aLeft.append(aTmpStart); aLeft.append(aTmpStart);
aLeft.append(aTmpEnd); aLeft.append(aTmpEnd);
xRetval[nInsert++] = Primitive2DReference(new PolygonHairlinePrimitive2D( basegfx::B2DPolyPolygon const aClipped =
aLeft, basegfx::tools::clipPolygonOnPolyPolygon(
getRGBColorLeft())); aLeft, aClipRegion, true, true);
xRetval[nInsert++] =
new PolyPolygonHairlinePrimitive2D(
aClipped,
getRGBColorLeft());
aGap.append( getStart() - getExtendLeftStart() * aVector ); aGap.append( getStart() - getExtendLeftStart() * aVector );
aGap.append( getEnd() + getExtendLeftEnd() * aVector ); aGap.append( getEnd() + getExtendLeftEnd() * aVector );
...@@ -159,9 +164,14 @@ namespace drawinglayer ...@@ -159,9 +164,14 @@ namespace drawinglayer
aRight.append(aTmpStart); aRight.append(aTmpStart);
aRight.append(aTmpEnd); aRight.append(aTmpEnd);
xRetval[nInsert++] = Primitive2DReference(new PolygonHairlinePrimitive2D( basegfx::B2DPolyPolygon const aClipped =
aRight, basegfx::tools::clipPolygonOnPolyPolygon(
getRGBColorRight())); aRight, aClipRegion, true, true);
xRetval[nInsert++] =
new PolyPolygonHairlinePrimitive2D(
aClipped,
getRGBColorRight());
aGap.append( getStart() - getExtendRightStart() * aVector ); aGap.append( getStart() - getExtendRightStart() * aVector );
aGap.append( getEnd() + getExtendRightEnd() * aVector ); aGap.append( getEnd() + getExtendRightEnd() * aVector );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment