diff options
| author | Jabiertxof <jtx@jtx> | 2016-12-19 21:12:42 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2016-12-19 21:12:42 +0000 |
| commit | 2f6848dc2b7ed9c60dcd440d7bf4ed39423636ca (patch) | |
| tree | 155209be74f4ccf92138ec0656176053b6797438 /src/knot-holder-entity.cpp | |
| parent | Update to trunk (diff) | |
| parent | Remove some ocurrences of desktop in knot functions (diff) | |
| download | inkscape-2f6848dc2b7ed9c60dcd440d7bf4ed39423636ca.tar.gz inkscape-2f6848dc2b7ed9c60dcd440d7bf4ed39423636ca.zip | |
Update to trunk
(bzr r15295.1.29)
Diffstat (limited to 'src/knot-holder-entity.cpp')
| -rw-r--r-- | src/knot-holder-entity.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/knot-holder-entity.cpp b/src/knot-holder-entity.cpp index 95b135be0..8add35d46 100644 --- a/src/knot-holder-entity.cpp +++ b/src/knot-holder-entity.cpp @@ -24,6 +24,7 @@ #include "sp-pattern.h" #include "snap.h" #include "desktop.h" +#include "inkscape.h" #include "sp-namedview.h" int KnotHolderEntity::counter = 0; @@ -32,6 +33,9 @@ void KnotHolderEntity::create(SPDesktop *desktop, SPItem *item, KnotHolder *pare const gchar *tip, SPKnotShapeType shape, SPKnotModeType mode, guint32 color) { + if (!desktop) { + desktop = SP_ACTIVE_DESKTOP; + } knot = new SPKnot(desktop, tip); this->parent_holder = parent; |
