From 8b04d0db6c55e36935690d37defb6f9b68945796 Mon Sep 17 00:00:00 2001 From: johnce Date: Wed, 5 Aug 2009 05:40:36 +0000 Subject: SPDocument->Document (bzr r8404) --- src/sp-text.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp-text.cpp') diff --git a/src/sp-text.cpp b/src/sp-text.cpp index 61947311c..325b3b381 100644 --- a/src/sp-text.cpp +++ b/src/sp-text.cpp @@ -62,7 +62,7 @@ static void sp_text_class_init (SPTextClass *classname); static void sp_text_init (SPText *text); static void sp_text_release (SPObject *object); -static void sp_text_build (SPObject *object, SPDocument *document, Inkscape::XML::Node *repr); +static void sp_text_build (SPObject *object, Document *document, Inkscape::XML::Node *repr); static void sp_text_set (SPObject *object, unsigned key, gchar const *value); static void sp_text_child_added (SPObject *object, Inkscape::XML::Node *rch, Inkscape::XML::Node *ref); static void sp_text_remove_child (SPObject *object, Inkscape::XML::Node *rch); @@ -147,7 +147,7 @@ sp_text_release (SPObject *object) } static void -sp_text_build (SPObject *object, SPDocument *doc, Inkscape::XML::Node *repr) +sp_text_build (SPObject *object, Document *doc, Inkscape::XML::Node *repr) { sp_object_read_attr(object, "x"); sp_object_read_attr(object, "y"); -- cgit v1.2.3 From 51c2905fd3e99955db2d823b79abb763d8097028 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Thu, 6 Aug 2009 14:17:17 +0000 Subject: Revert recent refactoring changes by johnce because they break the build, which cannot be fixed easily. (bzr r8422) --- src/sp-text.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp-text.cpp') diff --git a/src/sp-text.cpp b/src/sp-text.cpp index 325b3b381..61947311c 100644 --- a/src/sp-text.cpp +++ b/src/sp-text.cpp @@ -62,7 +62,7 @@ static void sp_text_class_init (SPTextClass *classname); static void sp_text_init (SPText *text); static void sp_text_release (SPObject *object); -static void sp_text_build (SPObject *object, Document *document, Inkscape::XML::Node *repr); +static void sp_text_build (SPObject *object, SPDocument *document, Inkscape::XML::Node *repr); static void sp_text_set (SPObject *object, unsigned key, gchar const *value); static void sp_text_child_added (SPObject *object, Inkscape::XML::Node *rch, Inkscape::XML::Node *ref); static void sp_text_remove_child (SPObject *object, Inkscape::XML::Node *rch); @@ -147,7 +147,7 @@ sp_text_release (SPObject *object) } static void -sp_text_build (SPObject *object, Document *doc, Inkscape::XML::Node *repr) +sp_text_build (SPObject *object, SPDocument *doc, Inkscape::XML::Node *repr) { sp_object_read_attr(object, "x"); sp_object_read_attr(object, "y"); -- cgit v1.2.3 From 4c098e924f306852e7489c181e0224a958c49003 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Wed, 26 Aug 2009 01:48:34 +0000 Subject: patch by Richard Hughes for 417777 (bzr r8534) --- src/sp-text.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sp-text.cpp') 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); } -- cgit v1.2.3