summaryrefslogtreecommitdiffstats
path: root/src/sp-tspan.cpp
diff options
context:
space:
mode:
authorRichard Hughes <cyreve@gmail.com>2007-07-11 21:44:47 +0000
committercyreve <cyreve@users.sourceforge.net>2007-07-11 21:44:47 +0000
commit0a0ca7dcf7791fe236ea233c0622ccc40ee0c175 (patch)
tree3ab83295f558b8c66e6a8c6c4f1ca79a9dde4efa /src/sp-tspan.cpp
parentMove 3D axis manipulation functions to separate file (diff)
downloadinkscape-0a0ca7dcf7791fe236ea233c0622ccc40ee0c175.tar.gz
inkscape-0a0ca7dcf7791fe236ea233c0622ccc40ee0c175.zip
bug 1243190: add tref element support; limited editing support thus far (patch by gbanaszk)
(bzr r3227)
Diffstat (limited to 'src/sp-tspan.cpp')
-rw-r--r--src/sp-tspan.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sp-tspan.cpp b/src/sp-tspan.cpp
index 0b8f97da1..c53a75d5d 100644
--- a/src/sp-tspan.cpp
+++ b/src/sp-tspan.cpp
@@ -32,6 +32,7 @@
#include "attributes.h"
#include "sp-use-reference.h"
#include "sp-tspan.h"
+#include "sp-tref.h"
#include "sp-textpath.h"
#include "text-editing.h"
#include "style.h"
@@ -239,7 +240,7 @@ sp_tspan_write(SPObject *object, Inkscape::XML::Node *repr, guint flags)
GSList *l = NULL;
for (SPObject* child = sp_object_first_child(object) ; child != NULL ; child = SP_OBJECT_NEXT(child) ) {
Inkscape::XML::Node* c_repr=NULL;
- if ( SP_IS_TSPAN(child) ) {
+ if ( SP_IS_TSPAN(child) || SP_IS_TREF(child) ) {
c_repr = child->updateRepr(NULL, flags);
} else if ( SP_IS_TEXTPATH(child) ) {
//c_repr = child->updateRepr(NULL, flags); // shouldn't happen
@@ -255,7 +256,7 @@ sp_tspan_write(SPObject *object, Inkscape::XML::Node *repr, guint flags)
}
} else {
for (SPObject* child = sp_object_first_child(object) ; child != NULL ; child = SP_OBJECT_NEXT(child) ) {
- if ( SP_IS_TSPAN(child) ) {
+ if ( SP_IS_TSPAN(child) || SP_IS_TREF(child) ) {
child->updateRepr(flags);
} else if ( SP_IS_TEXTPATH(child) ) {
//c_repr = child->updateRepr(NULL, flags); // shouldn't happen
@@ -515,7 +516,7 @@ sp_textpath_write(SPObject *object, Inkscape::XML::Node *repr, guint flags)
GSList *l = NULL;
for (SPObject* child = sp_object_first_child(object) ; child != NULL ; child = SP_OBJECT_NEXT(child) ) {
Inkscape::XML::Node* c_repr=NULL;
- if ( SP_IS_TSPAN(child) ) {
+ if ( SP_IS_TSPAN(child) || SP_IS_TREF(child) ) {
c_repr = child->updateRepr(NULL, flags);
} else if ( SP_IS_TEXTPATH(child) ) {
//c_repr = child->updateRepr(NULL, flags); // shouldn't happen
@@ -531,7 +532,7 @@ sp_textpath_write(SPObject *object, Inkscape::XML::Node *repr, guint flags)
}
} else {
for (SPObject* child = sp_object_first_child(object) ; child != NULL ; child = SP_OBJECT_NEXT(child) ) {
- if ( SP_IS_TSPAN(child) ) {
+ if ( SP_IS_TSPAN(child) || SP_IS_TREF(child) ) {
child->updateRepr(flags);
} else if ( SP_IS_TEXTPATH(child) ) {
//c_repr = child->updateRepr(NULL, flags); // shouldn't happen