summaryrefslogtreecommitdiffstats
path: root/src/livarot/PathStroke.cpp
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2013-09-14 19:54:11 +0000
committerapenner <penner@vaxxine.com>2013-09-14 19:54:11 +0000
commit7debcf27e2e4b795a1a8d56155515ddf5fecf33d (patch)
tree4d5a2e02c09c31021c1efab508a1900724f262fa /src/livarot/PathStroke.cpp
parentfix windows build (diff)
downloadinkscape-7debcf27e2e4b795a1a8d56155515ddf5fecf33d.tar.gz
inkscape-7debcf27e2e4b795a1a8d56155515ddf5fecf33d.zip
Path->Inset. remove redundant node on inner join. (Bug 1218333)
Fixed bugs: - https://launchpad.net/bugs/1218333 (bzr r12518)
Diffstat (limited to 'src/livarot/PathStroke.cpp')
-rw-r--r--src/livarot/PathStroke.cpp34
1 files changed, 18 insertions, 16 deletions
diff --git a/src/livarot/PathStroke.cpp b/src/livarot/PathStroke.cpp
index cdd5cae6d..50c335176 100644
--- a/src/livarot/PathStroke.cpp
+++ b/src/livarot/PathStroke.cpp
@@ -456,19 +456,20 @@ Path::DoLeftJoin (Shape * dest, double width, JoinType join, Geom::Point pos,
} else {*/
leftStNo = dest->AddPoint (pos + width * pnor);
leftEnNo = dest->AddPoint (pos + width * nnor);
- int midNo = dest->AddPoint (pos);
- int nEdge=dest->AddEdge (leftEnNo, midNo);
- if ( dest->hasBackData() ) {
- dest->ebData[nEdge].pathID=pathID;
- dest->ebData[nEdge].pieceID=pieceID;
- dest->ebData[nEdge].tSt=dest->ebData[nEdge].tEn=tID;
- }
- nEdge=dest->AddEdge (midNo, leftStNo);
+// int midNo = dest->AddPoint (pos);
+// int nEdge=dest->AddEdge (leftEnNo, midNo);
+ int nEdge=dest->AddEdge (leftEnNo, leftStNo);
if ( dest->hasBackData() ) {
dest->ebData[nEdge].pathID=pathID;
dest->ebData[nEdge].pieceID=pieceID;
dest->ebData[nEdge].tSt=dest->ebData[nEdge].tEn=tID;
}
+// nEdge=dest->AddEdge (midNo, leftStNo);
+// if ( dest->hasBackData() ) {
+// dest->ebData[nEdge].pathID=pathID;
+// dest->ebData[nEdge].pieceID=pieceID;
+// dest->ebData[nEdge].tSt=dest->ebData[nEdge].tEn=tID;
+// }
// }
}
else
@@ -678,19 +679,20 @@ Path::DoRightJoin (Shape * dest, double width, JoinType join, Geom::Point pos,
} else {*/
rightStNo = dest->AddPoint (pos - width*pnor);
rightEnNo = dest->AddPoint (pos - width*nnor);
- int midNo = dest->AddPoint (pos);
- int nEdge=dest->AddEdge (rightStNo, midNo);
+// int midNo = dest->AddPoint (pos);
+// int nEdge=dest->AddEdge (rightStNo, midNo);
+ int nEdge=dest->AddEdge (rightStNo, rightEnNo);
if ( dest->hasBackData() ) {
dest->ebData[nEdge].pathID=pathID;
dest->ebData[nEdge].pieceID=pieceID;
dest->ebData[nEdge].tSt=dest->ebData[nEdge].tEn=tID;
}
- nEdge=dest->AddEdge (midNo, rightEnNo);
- if ( dest->hasBackData() ) {
- dest->ebData[nEdge].pathID=pathID;
- dest->ebData[nEdge].pieceID=pieceID;
- dest->ebData[nEdge].tSt=dest->ebData[nEdge].tEn=tID;
- }
+// nEdge=dest->AddEdge (midNo, rightEnNo);
+// if ( dest->hasBackData() ) {
+// dest->ebData[nEdge].pathID=pathID;
+// dest->ebData[nEdge].pieceID=pieceID;
+// dest->ebData[nEdge].tSt=dest->ebData[nEdge].tEn=tID;
+// }
// }
}
}