diff options
| author | MenTaLguY <mental@rydia.net> | 2007-03-20 22:54:29 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-03-20 22:54:29 +0000 |
| commit | 5063f31f609ad9c89e7b6d0667c39bc4fad35c27 (patch) | |
| tree | 70d2c4b365d2cf1d2272fb015297816b92f604f3 /src/document.cpp | |
| parent | Implementing feature request #1673807: snapping of gradient handles (diff) | |
| download | inkscape-5063f31f609ad9c89e7b6d0667c39bc4fad35c27.tar.gz inkscape-5063f31f609ad9c89e7b6d0667c39bc4fad35c27.zip | |
plumb XML::Document parameter into duplication, courtesy of bryce
(bzr r2723)
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/document.cpp b/src/document.cpp index c6dc66a51..e66089fed 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -279,7 +279,7 @@ sp_document_create(Inkscape::XML::Document *rdoc, rnew->setAttribute("id", "base"); } else { // otherwise, take from preferences - rnew = r->duplicate(); + rnew = r->duplicate(rroot->document()); } // insert into the document rroot->addChild(rnew, NULL); |
