diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index dfd06b660bf5b6c3cf8375ec73faa9ecf9f24fe2..a880baba26e175c59d61162c2b2a0e5d34f97046 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 "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 {
g_warning ("-----> sp_nodepath_generate_helperpath(SPDesktop *desktop, SPItem *item): TODO: generate the helper path for this item type!\n");
return NULL;