diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2019-10-09 07:34:55 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2019-10-09 07:34:55 +0000 |
| commit | dc5eff7f906bbaf7d8d2b63805bcc5e24e19fcf8 (patch) | |
| tree | fe53a10e3ef9d12f28b2886bf7920c160cec32c4 /src/object/sp-mesh-array.cpp | |
| parent | Improve node selection ~x3 removing unneded updateNow() called in non necesar... (diff) | |
| download | inkscape-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.cpp | 10 |
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. |
