summaryrefslogtreecommitdiffstats
path: root/src/sp-text.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2009-08-26 01:48:34 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2009-08-26 01:48:34 +0000
commit4c098e924f306852e7489c181e0224a958c49003 (patch)
treeb8bc6667ea025f5729d9d1eeddb0f0c106fb036c /src/sp-text.cpp
parentpatch for divisor limit (diff)
downloadinkscape-4c098e924f306852e7489c181e0224a958c49003.tar.gz
inkscape-4c098e924f306852e7489c181e0224a958c49003.zip
patch by Richard Hughes for 417777
(bzr r8534)
Diffstat (limited to 'src/sp-text.cpp')
-rw-r--r--src/sp-text.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp
index 61947311c..0d3fd791b 100644
--- a/src/sp-text.cpp
+++ b/src/sp-text.cpp
@@ -937,11 +937,11 @@ void TextTagAttributes::addToRotate(unsigned index, double delta)
SVGLength zero_length;
zero_length = 0.0;
- if (attributes.rotate.size() < index + 1) {
+ if (attributes.rotate.size() < index + 2) {
if (attributes.rotate.empty())
- attributes.rotate.resize(index + 1, zero_length);
+ attributes.rotate.resize(index + 2, zero_length);
else
- attributes.rotate.resize(index + 1, attributes.rotate.back());
+ attributes.rotate.resize(index + 2, attributes.rotate.back());
}
attributes.rotate[index] = mod360(attributes.rotate[index].computed + delta);
}