]> git.lyx.org Git - lyx.git/blobdiff - src/MenuBackend.C
More 'standard conformant blurb' nonsense.
[lyx.git] / src / MenuBackend.C
index 34207b68fe114a09236e0123404c20cdc4d6bdcf..aba63ef7bb25c3742a2a77d58abcd847eb555cd7 100644 (file)
@@ -628,6 +628,9 @@ void expandToc(Menu & tomenu, LyXView const * view)
 
 void expandPasteRecent(Menu & tomenu, LyXView const * view)
 {
+       if (!view || !view->buffer())
+               return;
+
        vector<string> const selL =
                CutAndPaste::availableSelections(*view->buffer());
 
@@ -644,6 +647,9 @@ void expandPasteRecent(Menu & tomenu, LyXView const * view)
 
 void expandBranches(Menu & tomenu, LyXView const * view)
 {
+       if (!view || !view->buffer())
+               return;
+
        BufferParams const & params = view->buffer()->params;
 
        std::list<Branch>::const_iterator cit = params.branchlist.begin();