summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dfbb81c)
raw | patch | inline | side by side (parent: dfbb81c)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 5 Mar 2009 22:45:47 +0000 (22:45 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 5 Mar 2009 22:45:47 +0000 (22:45 +0000) |
src/nodepath.cpp | patch | blob | history |
diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index bd8dffc4ec2b865c1cec55ad20e1dc54fc5c8300..318649e5ff53b6e81f94ad1dece7c538ea4a2d7a 100644 (file)
--- a/src/nodepath.cpp
+++ b/src/nodepath.cpp
#include "preferences.h"
#include "sp-metrics.h"
#include "sp-path.h"
-#include "sp-rect.h"
+#include "sp-text.h"
+#include "sp-shape.h"
#include "libnr/nr-matrix-ops.h"
#include "svg/svg.h"
#include "verbs.h"
SPCurve *curve = NULL;
if (SP_IS_PATH(item)) {
curve = sp_path_get_curve_for_edit(SP_PATH(item));
- } else if (SP_IS_RECT(item)) {
- Geom::Rect rect = sp_rect_get_rect(SP_RECT(item));
- curve = SPCurve::new_from_rect(rect);
+ } else if ( SP_IS_SHAPE(item) && SP_SHAPE(item)->curve ) {
+ curve = sp_shape_get_curve (SP_SHAPE(item));
+ } else if ( SP_IS_TEXT(item) ) {
+ curve = SP_TEXT(item)->getNormalizedBpath();
} else {
g_warning ("-----> sp_nodepath_generate_helperpath(SPDesktop *desktop, SPItem *item): TODO: generate the helper path for this item type!\n");
return NULL;