summaryrefslogtreecommitdiffstats
path: root/src/vanishing-point.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-12-13 20:08:06 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-12-13 20:08:06 +0000
commit49308ff2f6ca0d4c640bc584b1b87a3ee6e31e97 (patch)
treeb02d64329cded4890fb01b7f9dd33a49f274eec7 /src/vanishing-point.cpp
parentImproved tango icons by Michael Grossberg. (diff)
downloadinkscape-49308ff2f6ca0d4c640bc584b1b87a3ee6e31e97.tar.gz
inkscape-49308ff2f6ca0d4c640bc584b1b87a3ee6e31e97.zip
If necessary, split up perspectives when applying transformations to boxes; moreover, fix crash caused by listening to already destroyed perspectives
(bzr r4227)
Diffstat (limited to 'src/vanishing-point.cpp')
-rw-r--r--src/vanishing-point.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/vanishing-point.cpp b/src/vanishing-point.cpp
index 0a8336102..0b68ff541 100644
--- a/src/vanishing-point.cpp
+++ b/src/vanishing-point.cpp
@@ -125,11 +125,7 @@ vp_knot_moved_handler (SPKnot *knot, NR::Point const *ppointer, guint state, gpo
/* if a box in the VP is unselected, move it to the
newly created perspective so that it doesn't get dragged **/
//g_print (" switching box #%d to new perspective.\n", (*i)->my_counter);
- persp3d_remove_box (old_persp, *i);
- persp3d_add_box (new_persp, *i);
- gchar *href = g_strdup_printf("#%s", SP_OBJECT_REPR(new_persp)->attribute("id"));
- SP_OBJECT_REPR(*i)->setAttribute("inkscape:perspectiveID", href);
- g_free(href);
+ box3d_switch_perspectives(*i, old_persp, new_persp);
}
}
}