diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-06-12 14:35:02 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-06-12 14:35:27 +0200 |
commit | 17ebc5540e3f80b04d38ba2000a1db96822874f6 (patch) | |
tree | 67abcea3d8af8b832dd6f597e74394de4550a17e /libvisio | |
parent | cd18b8e313b792f5fc42edb3314a95d202406899 (diff) |
Don't push_back(.back()), stupid
Change-Id: I91ed2c018218c68665471be146dc82f9dbfd34ad
Diffstat (limited to 'libvisio')
-rw-r--r-- | libvisio/libvisio-0.0.17.patch | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libvisio/libvisio-0.0.17.patch b/libvisio/libvisio-0.0.17.patch index c2b1309a3709..e998634b410e 100644 --- a/libvisio/libvisio-0.0.17.patch +++ b/libvisio/libvisio-0.0.17.patch @@ -1,6 +1,18 @@ --- misc/libvisio-0.0.17/src/lib/VSDXContentCollector.cpp 2012-05-31 15:14:42.000000000 +0200 +++ misc/build/libvisio-0.0.17/src/lib/VSDXContentCollector.cpp 2012-06-09 00:08:24.139051461 +0200 -@@ -2059,7 +2059,11 @@ +@@ -1429,7 +1429,10 @@ 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(); +@@ -2059,7 +2062,11 @@ void libvisio::VSDXContentCollector::_convertDataToString(WPXString &result, const WPXBinaryData &data, TextFormat format) { |