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/box3d-context.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/box3d-context.cpp')
| -rw-r--r-- | src/box3d-context.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/box3d-context.cpp b/src/box3d-context.cpp index d74b0e7d1..858e7fc57 100644 --- a/src/box3d-context.cpp +++ b/src/box3d-context.cpp @@ -187,7 +187,7 @@ static void sp_box3d_context_selection_changed(Inkscape::Selection *selection, g SPDocument *doc = sp_desktop_document(bc->desktop); doc->persps_sel.clear(); - doc->persps_sel = persp3d_currently_selected(bc); + doc->persps_sel = persp3d_currently_selected_persps(ec); SPItem *item = selection->singleItem(); if (item) { @@ -538,7 +538,7 @@ static gint sp_box3d_context_root_handler(SPEventContext *event_context, GdkEven break; case GDK_X: if (MOD__CTRL) break; // Don't catch Ctrl+X ('cut') and Ctrl+Shift+X ('open XML editor') - persp3d_toggle_VPs(persp3d_currently_selected(bc), Proj::X); + persp3d_toggle_VPs(persp3d_currently_selected_persps(event_context), Proj::X); bc->_vpdrag->updateLines(); // FIXME: Shouldn't this be done automatically? ret = true; break; @@ -546,7 +546,7 @@ static gint sp_box3d_context_root_handler(SPEventContext *event_context, GdkEven case GDK_Y: { if (MOD__CTRL) break; // Don't catch Ctrl+Y ("redo") - persp3d_toggle_VPs(persp3d_currently_selected(bc), Proj::Y); + persp3d_toggle_VPs(persp3d_currently_selected_persps(event_context), Proj::Y); bc->_vpdrag->updateLines(); // FIXME: Shouldn't this be done automatically? ret = true; break; @@ -555,7 +555,7 @@ static gint sp_box3d_context_root_handler(SPEventContext *event_context, GdkEven case GDK_Z: { if (MOD__CTRL) break; // Don't catch Ctrl+Z ("undo") - persp3d_toggle_VPs(persp3d_currently_selected(bc), Proj::Z); + persp3d_toggle_VPs(persp3d_currently_selected_persps(event_context), Proj::Z); bc->_vpdrag->updateLines(); // FIXME: Shouldn't this be done automatically? ret = true; break; |
