diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index 3035cb1a7ae022a5c633b425f664be203d87949f..3ee5b5d61532b010717f520ef9391c54ec06f66d 100644 (file)
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
#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"
sp_selected_path_boolop(bool_op_union, SP_VERB_SELECTION_UNION, _("Union"));
}
+void
+sp_selected_path_union_skip_undo()
+{
+ sp_selected_path_boolop(bool_op_union, SP_VERB_NONE, _("Union"));
+}
+
void
sp_selected_path_intersect()
{
@@ -573,7 +580,9 @@ sp_selected_path_boolop(bool_op bop, const unsigned int verb, const Glib::ustrin
g_free(transform);
- sp_document_done(sp_desktop_document(desktop), verb, description);
+ if (verb != SP_VERB_NONE) {
+ sp_document_done(sp_desktop_document(desktop), verb, description);
+ }
delete res;
}
{
curve = SP_TEXT(item)->getNormalizedBpath();
}
+ else if (SP_IS_IMAGE(item))
+ {
+ curve = sp_image_get_curve(SP_IMAGE(item));
+ }
else
{
curve = NULL;