Code

fix 1690914
authorbuliabyak <buliabyak@users.sourceforge.net>
Fri, 30 Mar 2007 05:49:59 +0000 (05:49 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Fri, 30 Mar 2007 05:49:59 +0000 (05:49 +0000)
src/sp-use.cpp

index 8aa8d3090f6bf0aa713fb811c173add3b7cbec86..cc23349a4046395bfbd83ea02485010e88be321d 100644 (file)
@@ -669,7 +669,7 @@ sp_use_unlink(SPUse *use)
                 copy->appendChild(newchild);
         }
     } else { // just copy
-        copy = SP_OBJECT_REPR(orig)->duplicate(copy->document());
+        copy = SP_OBJECT_REPR(orig)->duplicate(SP_OBJECT_REPR(orig)->document());
     }
 
     // Add the duplicate repr just after the existing one.