diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2007-12-13 20:08:06 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2007-12-13 20:08:06 +0000 |
| commit | 49308ff2f6ca0d4c640bc584b1b87a3ee6e31e97 (patch) | |
| tree | b02d64329cded4890fb01b7f9dd33a49f274eec7 /src/vanishing-point.cpp | |
| parent | Improved tango icons by Michael Grossberg. (diff) | |
| download | inkscape-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.cpp | 6 |
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); } } } |
