From: buliabyak Date: Tue, 7 Aug 2007 06:39:16 +0000 (+0000) Subject: enable Path_for_item to work on flowtext X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=62d75035963422f4054894cf52b76c74027a93f9;p=inkscape.git enable Path_for_item to work on flowtext --- 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)) {