]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #5536.
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 18 Nov 2008 21:37:02 +0000 (21:37 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 18 Nov 2008 21:37:02 +0000 (21:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27626 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index 5d2d28906b3f40de8900e82eed6861ad98d24b8d..7583cabb38a4a23f2b4d8c6d637c134df9586009 100644 (file)
@@ -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;
                }
        }