summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fcb23ac)
raw | patch | inline | side by side (parent: fcb23ac)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 14 Sep 2009 03:28:30 +0000 (03:28 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 14 Sep 2009 03:28:30 +0000 (03:28 +0000) |
src/box3d-context.cpp | patch | blob | history |
diff --git a/src/box3d-context.cpp b/src/box3d-context.cpp
index 128b5f2ff187bd27f882963d59180c587e857e87..e3476deb3a00aec82ab547d3c56a08e73a504fd0 100644 (file)
--- a/src/box3d-context.cpp
+++ b/src/box3d-context.cpp
static void sp_box3d_finish(Box3DContext *bc)
{
bc->_message_context->clear();
- g_assert (SP_ACTIVE_DOCUMENT->current_persp3d);
+ bc->ctrl_dragged = false;
+ bc->extruded = false;
if ( bc->item != NULL ) {
SPDesktop * desktop = SP_EVENT_CONTEXT_DESKTOP(bc);
+ SPDocument *doc = sp_desktop_document(desktop);
+ if (!doc || !doc->current_persp3d)
+ return;
SPBox3D *box = SP_BOX3D(bc->item);
bc->item = NULL;
}
-
- bc->ctrl_dragged = false;
- bc->extruded = false;
}
void sp_box3d_context_update_lines(SPEventContext *ec) {