diff --git a/src/desktop-events.cpp b/src/desktop-events.cpp
index 9a13bab735a7dd9a311b9cb2b86006fdd842abda..a1026481199609c52e32905a33a19b5f95684e8b 100644 (file)
--- a/src/desktop-events.cpp
+++ b/src/desktop-events.cpp
: wx )
>= 0 )
{
- Inkscape::XML::Node *repr = sp_repr_new("sodipodi:guide");
+ Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc());
+ Inkscape::XML::Node *repr = xml_doc->createElement("sodipodi:guide");
repr->setAttribute("orientation", (horiz) ? "horizontal" : "vertical");
double const guide_pos_dt = event_dt[ horiz
? NR::Y