diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-03-14 16:47:47 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2016-03-14 16:47:47 +0000 |
| commit | fee7ec667cc353e1efda6a1a92f1f4715836fa4f (patch) | |
| tree | 63fe115530cd3f8511b29cf2e250fcf23dc8fe08 /src/2geom/sbasis.cpp | |
| parent | update credits (diff) | |
| parent | "Relative to" option for node alignment. (diff) | |
| download | inkscape-fee7ec667cc353e1efda6a1a92f1f4715836fa4f.tar.gz inkscape-fee7ec667cc353e1efda6a1a92f1f4715836fa4f.zip | |
update to trunk
(bzr r13682.1.32)
Diffstat (limited to 'src/2geom/sbasis.cpp')
| -rw-r--r-- | src/2geom/sbasis.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/2geom/sbasis.cpp b/src/2geom/sbasis.cpp index 42d92d7b8..0f4159e94 100644 --- a/src/2geom/sbasis.cpp +++ b/src/2geom/sbasis.cpp @@ -279,9 +279,11 @@ SBasis multiply_add(SBasis const &a, SBasis const &b, SBasis c) { */ SBasis multiply(SBasis const &a, SBasis const &b) { - SBasis c(a.size() + b.size(), Linear(0,0)); - if(a.isZero() || b.isZero()) + if(a.isZero() || b.isZero()) { + SBasis c(1, Linear(0,0)); return c; + } + SBasis c(a.size() + b.size(), Linear(0,0)); return multiply_add(a, b, c); } #endif |
