summaryrefslogtreecommitdiffstats
path: root/src/splivarot.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-08-07 06:39:16 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-08-07 06:39:16 +0000
commit0f912e0d311c6f0dfbccb1b5c98943542402c3a3 (patch)
treee15ec6221596bfbb7a6b14686b2383726a621350 /src/splivarot.cpp
parentrevert previous commit which contained locally-linked bitmaps; see mailing list (diff)
downloadinkscape-0f912e0d311c6f0dfbccb1b5c98943542402c3a3.tar.gz
inkscape-0f912e0d311c6f0dfbccb1b5c98943542402c3a3.zip
enable Path_for_item to work on flowtext
(bzr r3406)
Diffstat (limited to 'src/splivarot.cpp')
-rw-r--r--src/splivarot.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index 33970f6a2..7b57170be 100644
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
@@ -27,6 +27,8 @@
#include "marker.h"
#include "enums.h"
#include "sp-text.h"
+#include "sp-flowtext.h"
+#include "text-editing.h"
#include "sp-item-group.h"
#include "style.h"
#include "inkscape.h"
@@ -1710,9 +1712,9 @@ Path_for_item(SPItem *item, bool doTransformation, bool transformFull)
{
curve = sp_shape_get_curve(SP_SHAPE(item));
}
- else if (SP_IS_TEXT(item))
+ else if (SP_IS_TEXT(item) || SP_IS_FLOWTEXT(item))
{
- curve = SP_TEXT(item)->getNormalizedBpath();
+ curve = te_get_layout(item)->convertToCurves();
}
else if (SP_IS_IMAGE(item))
{