From 62d75035963422f4054894cf52b76c74027a93f9 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 7 Aug 2007 06:39:16 +0000 Subject: [PATCH] enable Path_for_item to work on flowtext --- src/splivarot.cpp | 6 ++++-- 1 file 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)) { -- 2.30.2