summaryrefslogtreecommitdiffstats
path: root/src/object/sp-mesh-array.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-10-09 07:34:55 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-10-09 07:34:55 +0000
commitdc5eff7f906bbaf7d8d2b63805bcc5e24e19fcf8 (patch)
treefe53a10e3ef9d12f28b2886bf7920c160cec32c4 /src/object/sp-mesh-array.cpp
parentImprove node selection ~x3 removing unneded updateNow() called in non necesar... (diff)
downloadinkscape-dc5eff7f906bbaf7d8d2b63805bcc5e24e19fcf8.tar.gz
inkscape-dc5eff7f906bbaf7d8d2b63805bcc5e24e19fcf8.zip
Fix segfault in reading in meshes when xml:space="preserve".
Fixes https://gitlab.com/inkscape/inkscape/issues/172
Diffstat (limited to '')
-rw-r--r--src/object/sp-mesh-array.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/object/sp-mesh-array.cpp b/src/object/sp-mesh-array.cpp
index 848e8de3b..61e803c44 100644
--- a/src/object/sp-mesh-array.cpp
+++ b/src/object/sp-mesh-array.cpp
@@ -860,9 +860,8 @@ bool SPMeshNodeArray::read( SPMeshGradient *mg_in ) {
new_patch.setOpacity( istop, opacity );
new_patch.setStopPtr( istop, stop );
}
-
+ ++istop;
}
- ++istop;
} // Loop over stops
// Read in tensor string after stops since tensor nodes defined relative to corner nodes.
@@ -887,13 +886,12 @@ bool SPMeshNodeArray::read( SPMeshGradient *mg_in ) {
}
}
}
+ ++icolumn;
+ if( max_column < icolumn ) max_column = icolumn;
}
-
- ++icolumn;
- if( max_column < icolumn ) max_column = icolumn;
}
+ ++irow;
}
- ++irow;
}
// Insure we have a true array.