From 6f88e6489578bfcdac037c94c38ffae71c3d29c0 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Tue, 18 Nov 2008 21:37:02 +0000 Subject: [PATCH] Fix bug #5536. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27626 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } } -- 2.39.5