Kaydet (Commit) 6773a778 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

hairline borders were never displayed

üst 8fa00090
...@@ -83,7 +83,7 @@ namespace drawinglayer ...@@ -83,7 +83,7 @@ namespace drawinglayer
{ {
Primitive2DSequence xRetval; Primitive2DSequence xRetval;
if(!getStart().equal(getEnd()) && getWidth() > 0) if(!getStart().equal(getEnd()) && ( isInsideUsed() || isOutsideUsed() ) )
{ {
// get data and vectors // get data and vectors
const double fWidth(getWidth()); const double fWidth(getWidth());
...@@ -120,8 +120,8 @@ namespace drawinglayer ...@@ -120,8 +120,8 @@ namespace drawinglayer
aLeft, aLeft,
getRGBColorLeft())); getRGBColorLeft()));
aGap.append( aTmpStart ); aGap.append( getStart() - getExtendLeftStart() * aVector );
aGap.append( aTmpEnd ); aGap.append( getEnd() + getExtendLeftEnd() * aVector );
} }
else else
{ {
...@@ -165,8 +165,8 @@ namespace drawinglayer ...@@ -165,8 +165,8 @@ namespace drawinglayer
aRight, aRight,
getRGBColorRight())); getRGBColorRight()));
aGap.append( aTmpEnd ); aGap.append( getStart() - getExtendRightStart() * aVector );
aGap.append( aTmpStart ); aGap.append( getEnd() + getExtendRightEnd() * aVector );
} }
else else
{ {
...@@ -226,8 +226,8 @@ namespace drawinglayer ...@@ -226,8 +226,8 @@ namespace drawinglayer
if(bIsHairline) if(bIsHairline)
{ {
// create hairline primitive // create hairline primitive
aPolygon.append(aTmpStart); aPolygon.append( getStart() );
aPolygon.append(aTmpEnd); aPolygon.append( getEnd() );
xRetval[0] = Primitive2DReference(new PolygonHairlinePrimitive2D( xRetval[0] = Primitive2DReference(new PolygonHairlinePrimitive2D(
aPolygon, aPolygon,
......
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