summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-06-12 14:26:29 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-06-12 14:26:29 +0200
commit943c45de562d5a7faa70c766ae5ae5b2adb86df2 (patch)
treeadadf85824939137dcb68d0c2f76fe45d61267dc
parent9316bd4bdd8f7ee21df91e5532566c34906043af (diff)
Don't push_back(.back())
-rw-r--r--src/lib/VSDXContentCollector.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/VSDXContentCollector.cpp b/src/lib/VSDXContentCollector.cpp
index 8607b02..6acc4f1 100644
--- a/src/lib/VSDXContentCollector.cpp
+++ b/src/lib/VSDXContentCollector.cpp
@@ -1429,7 +1429,9 @@ void libvisio::VSDXContentCollector::collectNURBSTo(unsigned /* id */, unsigned
// Fill in end knots
while (knotVector.size() < (controlPoints.size() + degree + 2))
- knotVector.push_back(knotVector.back());
+ {
+ double tmpBack = knotVector.back();
+ knotVector.push_back(tmpBack);
// Convert control points to static co-ordinates
for (std::vector<std::pair<double, double> >::iterator it = controlPoints.begin();