summaryrefslogtreecommitdiffstats
path: root/src/box3d.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-08-06 07:20:23 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-08-06 07:20:23 +0000
commitd01e7d7d15cfcc0b603eecc6a0d0b925f00ee003 (patch)
treec2a24485c71bc11cd194266d429f13f7313f6297 /src/box3d.cpp
parentConvenience for debugging (diff)
downloadinkscape-d01e7d7d15cfcc0b603eecc6a0d0b925f00ee003.tar.gz
inkscape-d01e7d7d15cfcc0b603eecc6a0d0b925f00ee003.zip
Workaround for some segfaults: Store perspectives globally instead of in each desktop (this should probably be reverted later on)
(bzr r3390)
Diffstat (limited to 'src/box3d.cpp')
-rw-r--r--src/box3d.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/box3d.cpp b/src/box3d.cpp
index fbf7fb15d..455a7889c 100644
--- a/src/box3d.cpp
+++ b/src/box3d.cpp
@@ -112,11 +112,10 @@ sp_3dbox_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr
Box3D::VanishingPoint (0,0),
Box3D::VanishingPoint (0,0));
sp_3dbox_update_perspective (persp, repr->attribute ("inkscape:perspective"));
- SPDesktop *desktop = inkscape_active_desktop();
- Box3D::Perspective3D *comp = desktop->find_perspective (persp);
+ Box3D::Perspective3D *comp = Box3D::Perspective3D::find_perspective (persp);
if (comp == NULL) {
// perspective doesn't exist yet
- desktop->add_perspective (persp);
+ Box3D::Perspective3D::add_perspective (persp);
persp->add_box (box);
} else {
// link the box to the existing perspective and delete the temporary one