]> git.lyx.org Git - features.git/blobdiff - src/lyxfunc.C
move the Selection structure from LyXText to BufferView
[features.git] / src / lyxfunc.C
index cb4485b5873dda3b11305b3ab0743825021e9443..4b040eb805569a0cb2bf4ecda375b44fb298e044 100644 (file)
@@ -344,7 +344,7 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & ev) const
                if (tab && tab->hasSelection())
                        disable = false;
                else
-                       disable = !mathcursor && !view()->getLyXText()->selection.set();
+                       disable = !mathcursor && !view()->selection().set();
                break;
 
        case LFUN_RUNCHKTEX: