Some hints from JMarc.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25310 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2008-06-18 22:37:35 +00:00
parent dcc50a2454
commit 8018bef22b
2 changed files with 4 additions and 4 deletions

View File

@ -1915,7 +1915,7 @@ void LyXAction::init()
* \li Origin: sanda, 6 May 2008
* \endvar
*/
{ LFUN_GRAPHICS_GROUPS_UNIFY, "graphics-groups-unify", ReadOnly, Edit },
{ LFUN_GRAPHICS_GROUPS_UNIFY, "graphics-groups-unify", Argument, Edit },
/*!
* \var lyx::FuncCode lyx::LFUN_SET_GRAPHICS_GROUP
* \li Action: Set the group for the graphics inset on the cursor position.
@ -1925,7 +1925,7 @@ void LyXAction::init()
* \li Origin: sanda, 6 May 2008
* \endvar
*/
{ LFUN_SET_GRAPHICS_GROUP, "set-graphics-group", ReadOnly, Edit },
{ LFUN_SET_GRAPHICS_GROUP, "set-graphics-group", Noop, Edit },
/*!
* \var lyx::FuncCode lyx::LFUN_FINISHED_FORWARD

View File

@ -1408,7 +1408,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
case LFUN_GRAPHICS_GROUPS_UNIFY: {
LASSERT(lyx_view_, /**/);
if (argument.empty() || !lyx_view_->buffer())
if (argument.empty())
break;
//view()->cursor().recordUndoFullDocument(); let inset-apply do that job
graphics::unifyGraphicsGroups(*lyx_view_->buffer(), argument);
@ -1423,7 +1423,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
// once the insets refactoring is done.
case LFUN_NOTES_MUTATE: {
LASSERT(lyx_view_ && lyx_view_->view(), /**/);
if (argument.empty() || !lyx_view_->buffer())
if (argument.empty())
break;
view()->cursor().recordUndoFullDocument();