From: buliabyak Date: Wed, 26 Aug 2009 01:48:34 +0000 (+0000) Subject: patch by Richard Hughes for 417777 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=feffcda9e766df2a5a28e0d6dff18cb5e8589482;p=inkscape.git patch by Richard Hughes for 417777 --- 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); }