X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursorSlice.h;h=4da530d1378211edef65a424e878a820a72104eb;hb=c6e1db7682dc8d58a68147b5eee1d004829ef6d2;hp=01634bdacca3a1dabc2d507dbb614a9b2df9e40e;hpb=a4e03846cd4a5c369548e0913994e5f482a83277;p=lyx.git diff --git a/src/CursorSlice.h b/src/CursorSlice.h index 01634bdacc..4da530d137 100644 --- a/src/CursorSlice.h +++ b/src/CursorSlice.h @@ -65,6 +65,8 @@ public: friend bool operator<=(CursorSlice const &, CursorSlice const &); //@} + /// return true if the slice has not been initialized + bool empty() const { return !inset_; } /// the current inset Inset & inset() const { return *inset_; } /// return the cell this cursor is in