]> git.lyx.org Git - features.git/commitdiff
Add fall back code to assertion.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 29 Sep 2008 08:42:18 +0000 (08:42 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 29 Sep 2008 08:42:18 +0000 (08:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26609 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index d360d3d957c8edd0c7075dac22635d7b8d479ca6..d38c5b48f1770d0bd5455e6839ce1101e7ba6550 100644 (file)
@@ -890,7 +890,7 @@ GuiWorkArea const * GuiView::currentWorkArea() const
 
 void GuiView::setCurrentWorkArea(GuiWorkArea * wa)
 {
-       LASSERT(wa, /**/);
+       LASSERT(wa, return);
        d.current_work_area_ = wa;
        for (int i = 0; i != d.splitter_->count(); ++i) {
                if (d.tabWorkArea(i)->setCurrentWorkArea(wa))
@@ -901,7 +901,7 @@ void GuiView::setCurrentWorkArea(GuiWorkArea * wa)
 
 void GuiView::removeWorkArea(GuiWorkArea * wa)
 {
-       LASSERT(wa, /**/);
+       LASSERT(wa, return);
        if (wa == d.current_work_area_) {
                disconnectBuffer();
                disconnectBufferView();
@@ -989,7 +989,7 @@ Buffer const * GuiView::buffer() const
 
 void GuiView::setBuffer(Buffer * newBuffer)
 {
-       LASSERT(newBuffer, /**/);
+       LASSERT(newBuffer, return);
        setBusy(true);
 
        GuiWorkArea * wa = workArea(*newBuffer);
@@ -1192,7 +1192,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
                        FuncStatus fs;
                        if (!inset->getStatus(view()->cursor(), fr, fs)) {
                                // Every inset is supposed to handle this
-                               LASSERT(false, /**/);
+                               LASSERT(false, break);
                        }
                        flag |= fs;
                } else {
@@ -1970,7 +1970,7 @@ bool GuiView::dispatch(FuncRequest const & cmd)
                        if (inset) {
                                // put cursor in front of inset.
                                if (!view()->setCursorFromInset(inset))
-                                       LASSERT(false, /**/);
+                                       LASSERT(false, break);
                                
                                // useful if we are called from a dialog.
                                view()->cursor().beginUndoGroup();
@@ -2398,7 +2398,7 @@ Dialog * createGuiWrap(GuiView & lv);
 
 Dialog * GuiView::build(string const & name)
 {
-       LASSERT(isValidName(name), /**/);
+       LASSERT(isValidName(name), return 0);
 
        if (name == "aboutlyx")
                return createGuiAbout(*this);