Code

enable Path_for_item to work on flowtext
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 7 Aug 2007 06:39:16 +0000 (06:39 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 7 Aug 2007 06:39:16 +0000 (06:39 +0000)
src/splivarot.cpp

index 33970f6a23161d737705b1359da934e13183d661..7b57170be2ce5e3c5f255bb9afd8fd41743ab117 100644 (file)
@@ -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))
     {