summaryrefslogtreecommitdiffstats
path: root/src/sp-mesh-array.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-11-17 12:13:09 +0000
committertavmjong-free <tavmjong@free.fr>2016-11-17 12:13:09 +0000
commita5fcbbd7a6bcc7fb65658ee42f85f41acca02ee5 (patch)
tree4d07153f85327722b0b55718eca990931f908031 /src/sp-mesh-array.cpp
parentDo not return invalid vector gradient when switching from mesh to linear/radi... (diff)
downloadinkscape-a5fcbbd7a6bcc7fb65658ee42f85f41acca02ee5.tar.gz
inkscape-a5fcbbd7a6bcc7fb65658ee42f85f41acca02ee5.zip
Fix path outline function for meshes with nrow != ncolumn.
(bzr r15255)
Diffstat (limited to 'src/sp-mesh-array.cpp')
-rw-r--r--src/sp-mesh-array.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-mesh-array.cpp b/src/sp-mesh-array.cpp
index 2340b1936..47480f10c 100644
--- a/src/sp-mesh-array.cpp
+++ b/src/sp-mesh-array.cpp
@@ -2798,7 +2798,7 @@ SPCurve * SPMeshNodeArray::outline_path() {
}
// Bottom (right to left)
- for (int i = 1; i < nrow; i += 3 ) {
+ for (int i = 1; i < ncol; i += 3 ) {
outline->curveto( nodes[nrow-1][ncol-i-1]->p, nodes[nrow-1][ncol-i-2]->p, nodes[nrow-1][ncol-i-3]->p);
}