Ejemplo n.º 1
0
GiContext& GiCoreView::getContext(bool forChange)
{
    if (!forChange) {
        _contextEditing = false;
    }

    MgShape* shape = NULL;
    impl->_cmds->getSelection(impl, 1, &shape, forChange);
    _tmpContext = shape ? *shape->context() : *impl->context();

    return _tmpContext;
}