From: Vincent van Ravesteijn Date: Tue, 18 Nov 2008 21:37:02 +0000 (+0000) Subject: Fix bug #5536. X-Git-Tag: 2.0.0~7669 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6f88e6489578bfcdac037c94c38ffae71c3d29c0;p=lyx.git Fix bug #5536. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27626 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 5d2d28906b..7583cabb38 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -3013,8 +3013,9 @@ bool InsetTabular::isCellSelected(Cursor & cur, row_type row, col_type col) CursorSlice const & beg = cur.selBegin(); CursorSlice const & end = cur.selEnd(); - if (end.lastpos() > 0 && end.pos() == end.lastpos() - && beg.pos() == 0) + if ((end.lastpos() > 0 || end.lastpit() > 0) + && end.pos() == end.lastpos() && beg.pos() == 0 + && end.pit() == end.lastpit() && beg.pit() == 0) return true; } }