summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 200832f)
raw | patch | inline | side by side (parent: 200832f)
author | cilix42 <cilix42@users.sourceforge.net> | |
Mon, 10 Sep 2007 14:53:47 +0000 (14:53 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Mon, 10 Sep 2007 14:53:47 +0000 (14:53 +0000) |
src/box3d.cpp | patch | blob | history |
diff --git a/src/box3d.cpp b/src/box3d.cpp
index e47aa73b38d2c6e8821663d119d314b15b0d3ecc..ff00a795c57505d50c8475fa83ed835cd16e4740 100644 (file)
--- a/src/box3d.cpp
+++ b/src/box3d.cpp
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 */