From: Vincent van Ravesteijn Date: Tue, 30 Nov 2010 09:32:30 +0000 (+0000) Subject: Fix bug #4849: Split cell always enabled in (context) menu. X-Git-Tag: 2.0.0~1593 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=36986009d1bd0758345d87a24d23616c76364fe3;p=features.git Fix bug #4849: Split cell always enabled in (context) menu. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36622 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp index daaa4276a7..86e923a80c 100644 --- a/src/mathed/InsetMathGrid.cpp +++ b/src/mathed/InsetMathGrid.cpp @@ -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: