]> git.lyx.org Git - features.git/commitdiff
Fix bug #4849: Split cell always enabled in (context) menu.
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 30 Nov 2010 09:32:30 +0000 (09:32 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 30 Nov 2010 09:32:30 +0000 (09:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36622 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathGrid.cpp

index daaa4276a7acd72aafe39ed08834b3a756133f98..86e923a80c5ad5b7eff2aa47ad0e7c44867025ca 100644 (file)
@@ -1534,7 +1534,7 @@ bool InsetMathGrid::getStatus(Cursor & cur, FuncRequest const & cmd,
        }
 
        case LFUN_CELL_SPLIT:
-               status.setEnabled(true);
+               status.setEnabled(cur.idx() != cur.lastidx());
                return true;
 
        case LFUN_CELL_BACKWARD: