summaryrefslogtreecommitdiffstats
path: root/src/box3d.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2008-07-07 16:35:28 +0000
committermental <mental@users.sourceforge.net>2008-07-07 16:35:28 +0000
commita2e48b91ec876040a84cc1bc6bd19ffab87ef62b (patch)
tree8139bbb8fa10fea30d25cb5c266910d9546cde9f /src/box3d.cpp
parent2geomify polygon. added TODO to add testcase for corner case polygon element (diff)
downloadinkscape-a2e48b91ec876040a84cc1bc6bd19ffab87ef62b.tar.gz
inkscape-a2e48b91ec876040a84cc1bc6bd19ffab87ef62b.zip
try to use consistent document for creating guides
(bzr r6212)
Diffstat (limited to 'src/box3d.cpp')
-rw-r--r--src/box3d.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/box3d.cpp b/src/box3d.cpp
index f0bf4647d..cda482e73 100644
--- a/src/box3d.cpp
+++ b/src/box3d.cpp
@@ -1421,8 +1421,6 @@ box3d_convert_to_guides(SPItem *item) {
return;
}
- SPDocument *doc = SP_OBJECT_DOCUMENT(box);
-
std::list<std::pair<Geom::Point, Geom::Point> > pts;
/* perspective lines in X direction */
@@ -1443,7 +1441,7 @@ box3d_convert_to_guides(SPItem *item) {
box3d_push_back_corner_pair(box, pts, 2, 6);
box3d_push_back_corner_pair(box, pts, 3, 7);
- sp_guide_pt_pairs_to_guides(doc, pts);
+ sp_guide_pt_pairs_to_guides(inkscape_active_desktop(), pts);
}
/*