diff options
| author | JF Barraud <jf.barraud@gmail.com> | 2009-03-09 01:47:39 +0000 |
|---|---|---|
| committer | jfbarraud <jfbarraud@users.sourceforge.net> | 2009-03-09 01:47:39 +0000 |
| commit | fffb14c92df4ff0efb9271708984c75ca12b30d6 (patch) | |
| tree | 04a75637990939efdd4da28826357ff214bafc22 /src/2geom/sbasis.cpp | |
| parent | part of bug #339660; can not use Add/Rename dialog to create layer with no pr... (diff) | |
| download | inkscape-fffb14c92df4ff0efb9271708984c75ca12b30d6.tar.gz inkscape-fffb14c92df4ff0efb9271708984c75ca12b30d6.zip | |
2geom update
(bzr r7453)
Diffstat (limited to 'src/2geom/sbasis.cpp')
| -rw-r--r-- | src/2geom/sbasis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2geom/sbasis.cpp b/src/2geom/sbasis.cpp index b5c1a05a7..49678b19a 100644 --- a/src/2geom/sbasis.cpp +++ b/src/2geom/sbasis.cpp @@ -198,7 +198,7 @@ SBasis shift(SBasis const &a, int sh) { for(int i = 0; i < sh; i++) c[i] = Linear(0,0); - for(size_t i = m, j = 0; i < n; i++, j++) + for(size_t i = m, j = std::max(0,-sh); i < n; i++, j++) c[i] = a[j]; return c; } |
