Logo Search packages:      
Sourcecode: inkscape version File versions

SPObject * Inkscape::Selection::activeContext (  ) 

Returns active layer for selection (currentLayer or its parent).

Returns:
layer item the selection is bound to

Definition at line 134 of file selection.cpp.

References SPDesktop::currentLayer(), and desktop().

                                   {
    if (NULL != _selection_context)
        return _selection_context;
    return desktop()->currentLayer();
    }


Generated by  Doxygen 1.6.0   Back to index