summaryrefslogtreecommitdiffstats
path: root/src/livarot/PathCutting.cpp
diff options
context:
space:
mode:
authorBryce Harrington <bryce@bryceharrington.org>2008-01-31 19:06:59 +0000
committerbryce <bryce@users.sourceforge.net>2008-01-31 19:06:59 +0000
commit06d8aaba21496e6a39a7c18dd82e0d3efbeb531c (patch)
treeb2dec94e06000e9929f24385c60e64f629e4e041 /src/livarot/PathCutting.cpp
parentr17815@shi: ted | 2008-01-31 08:58:15 -0800 (diff)
downloadinkscape-06d8aaba21496e6a39a7c18dd82e0d3efbeb531c.tar.gz
inkscape-06d8aaba21496e6a39a7c18dd82e0d3efbeb531c.zip
Applying fixes for gcc 4.3 build issues (closes LP: #169115)
(bzr r4629)
Diffstat (limited to 'src/livarot/PathCutting.cpp')
-rw-r--r--src/livarot/PathCutting.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/livarot/PathCutting.cpp b/src/livarot/PathCutting.cpp
index 276c9b260..7bc1114a3 100644
--- a/src/livarot/PathCutting.cpp
+++ b/src/livarot/PathCutting.cpp
@@ -13,6 +13,10 @@
* Released under GNU GPL, read the file 'COPYING' for more information
*/
+#include <cstring>
+#include <string>
+#include <cstdio>
+
#include "Path.h"
#include "style.h"
#include "livarot/path-description.h"
@@ -25,11 +29,11 @@ void Path::DashPolyline(float head,float tail,float body,int nbD,float *dashs,b
std::vector<path_lineto> orig_pts = pts;
pts.clear();
-
+
int lastMI=-1;
int curP = 0;
int lastMP = -1;
-
+
for (int i = 0; i < int(orig_pts.size()); i++) {
if ( orig_pts[curP].isMoveTo == polyline_moveto ) {
if ( lastMI >= 0 && lastMI < i-1 ) { // au moins 2 points