Logo Search packages:      
Sourcecode: inkscape version File versions

static ShapeEditor* get_current_shape_editor (  )  [static]

FIXME: Returns current shape_editor in context. // later eliminate this function at all!

Definition at line 987 of file toolbox.cpp.

References SPEventContext::shape_editor.

{
    if (!SP_ACTIVE_DESKTOP) {
        return NULL;
    }

    SPEventContext *event_context = (SP_ACTIVE_DESKTOP)->event_context;

    if (!SP_IS_NODE_CONTEXT(event_context)) {
        return NULL;
    }

    return event_context->shape_editor;
}


Generated by  Doxygen 1.6.0   Back to index