summaryrefslogtreecommitdiffstats
path: root/src/sp-text.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-11-29 19:51:36 +0000
committerTed Gould <ted@gould.cx>2009-11-29 19:51:36 +0000
commit51a880db854a5959378d755b3049a168f634c071 (patch)
treeac1d51963375f9cbb14a730153447b01e981b620 /src/sp-text.cpp
parentadding iffdefs for LCMS and fixing layout of CMS icons (diff)
parentDeprecation warning fix on xcf export (diff)
downloadinkscape-51a880db854a5959378d755b3049a168f634c071.tar.gz
inkscape-51a880db854a5959378d755b3049a168f634c071.zip
Updating to current trunk
(bzr r8050.1.16)
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);
}