]> git.lyx.org Git - lyx.git/blobdiff - src/CursorSlice.h
Fix some display glitches
[lyx.git] / src / CursorSlice.h
index 01634bdacca3a1dabc2d507dbb614a9b2df9e40e..4da530d1378211edef65a424e878a820a72104eb 100644 (file)
@@ -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