summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 704bd12)
raw | patch | inline | side by side (parent: 704bd12)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 28 Nov 2007 23:51:56 +0000 (23:51 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 28 Nov 2007 23:51:56 +0000 (23:51 +0000) |
src/sp-shape.cpp | patch | blob | history |
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp
index 13500862af08290f43739153bf0c73de490b48ac..7029af194a7dc49f72e2aa463d9d241042098674 100644 (file)
--- a/src/sp-shape.cpp
+++ b/src/sp-shape.cpp
NArtBpath const *bp = SP_CURVE_BPATH(shape->curve);
gchar const *nodetypes = item->repr->attribute("sodipodi:nodetypes");
- int nodetype_index = 0;
-
- bool nodetypes_out_of_date = strlen(nodetypes) != (size_t)(shape->curve->end);
- // nodetypes might still be empty, e.g. for pure SVG files
- // or it might not have been updated yet
-
- if (bp->code == NR_MOVETO) { // Indicates the start of a closed subpath, see nr-path-code.h
+ int nodetype_index = 0;
+
+ bool nodetypes_out_of_date = (!nodetypes) || (strlen(nodetypes) != (size_t)(shape->curve->end));
+ // nodetypes might still be empty, e.g. for pure SVG files
+ // or it might not have been updated yet
+
+ if (bp->code == NR_MOVETO) { // Indicates the start of a closed subpath, see nr-path-code.h
bp++; //The first point of a closed path is coincident with the end point. Skip the first point as we need only one
nodetype_index++;
}