]> git.lyx.org Git - features.git/commitdiff
Some hints from JMarc.
authorPavel Sanda <sanda@lyx.org>
Wed, 18 Jun 2008 22:37:35 +0000 (22:37 +0000)
committerPavel Sanda <sanda@lyx.org>
Wed, 18 Jun 2008 22:37:35 +0000 (22:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25310 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXAction.cpp
src/LyXFunc.cpp

index e6a998461430cede406a47d1a08c0a9adf7b18bd..148b23d0424a91507a463c047b68fd232c79cd99 100644 (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
index 5a926eca4f5dbf5ffb38df739d445e982af2bebb..db13dfbd2d478bf62ae6145f4b223790cb1426a5 100644 (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();