diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2007-09-10 14:53:47 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2007-09-10 14:53:47 +0000 |
| commit | 4ecdcd2ddeba1ad0ba8992a8585a9b9fa6d7dad3 (patch) | |
| tree | 777af11d98e4e0852beb38dfceb6d55217860d63 /src/box3d.cpp | |
| parent | Don't catch Shift+Ctrl+L (Layers dialog) in 3D box context (diff) | |
| download | inkscape-4ecdcd2ddeba1ad0ba8992a8585a9b9fa6d7dad3.tar.gz inkscape-4ecdcd2ddeba1ad0ba8992a8585a9b9fa6d7dad3.zip | |
Fix crash when 3D boxes are rotated in selector context
(bzr r3709)
Diffstat (limited to 'src/box3d.cpp')
| -rw-r--r-- | src/box3d.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/box3d.cpp b/src/box3d.cpp index e47aa73b3..ff00a795c 100644 --- a/src/box3d.cpp +++ b/src/box3d.cpp @@ -236,11 +236,13 @@ sp_3dbox_update(SPObject *object, SPCtx *ctx, guint flags) SP3DBox *box = SP_3DBOX(object); Inkscape::XML::Node *repr = SP_OBJECT_REPR(object); sp_3dbox_link_to_existing_paths (box, repr); - SP3DBoxContext *bc = SP_3DBOX_CONTEXT (inkscape_active_event_context()); - bc->_vpdrag->updateDraggers(); - // FIXME: Should we update the corners here, too? Maybe this is the reason why the handles - // are off after an undo/redo! On the other hand, if we do so we get warnings about - // updates occuring while other updats are in progress ... + SPEventContext *ec = inkscape_active_event_context(); + if (SP_IS_3DBOX_CONTEXT (ec)) { + SP_3DBOX_CONTEXT (ec)->_vpdrag->updateDraggers(); + // FIXME: Should we update the corners here, too? Maybe this is the reason why the handles + // are off after an undo/redo! On the other hand, if we do so we get warnings about + // updates occuring while other updats are in progress ... + } } /* Invoke parent method */ |
