summaryrefslogtreecommitdiffstats
path: root/src/splivarot.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-06-26 21:07:31 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-06-26 21:07:31 +0000
commita05ff8fca661b5681e43221f29a157fd7a26c106 (patch)
tree29fbf8b08f69ee5bf07f5a7225d37d6feaeca424 /src/splivarot.cpp
parentAdd gtkrc to build.xml. Fix native path on <makefile> (diff)
downloadinkscape-a05ff8fca661b5681e43221f29a157fd7a26c106.tar.gz
inkscape-a05ff8fca661b5681e43221f29a157fd7a26c106.zip
implementing snapping to images
(bzr r3110)
Diffstat (limited to 'src/splivarot.cpp')
-rw-r--r--src/splivarot.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index f1ce029f4..3ee5b5d61 100644
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
@@ -23,6 +23,7 @@
#include "svg/svg.h"
#include "sp-path.h"
#include "sp-shape.h"
+#include "sp-image.h"
#include "marker.h"
#include "enums.h"
#include "sp-text.h"
@@ -1713,6 +1714,10 @@ Path_for_item(SPItem *item, bool doTransformation, bool transformFull)
{
curve = SP_TEXT(item)->getNormalizedBpath();
}
+ else if (SP_IS_IMAGE(item))
+ {
+ curve = sp_image_get_curve(SP_IMAGE(item));
+ }
else
{
curve = NULL;