]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSpellchecker.cpp
Properly track the lifetime of signals2::slots (#8261)
[lyx.git] / src / frontends / qt4 / GuiSpellchecker.cpp
index 24aa43d68326c9eb606c930ae8f1d76a6693a25f..cbdf4f4893b9947eb427e93846869ed4d017c2f4 100644 (file)
@@ -346,7 +346,7 @@ void SpellcheckerWidget::Private::setSelection(
                int const size = end.pos() - from.pos();
                bv->putSelectionAt(from, size, false);
        }
-       bv->processUpdateFlags(Update::Force | Update::FitCursor);      
+       bv->processUpdateFlags(Update::Force | Update::FitCursor);
 }
 
 void SpellcheckerWidget::Private::forward()
@@ -490,6 +490,8 @@ void SpellcheckerWidget::on_replaceAllPB_clicked()
        LYXERR(Debug::GUI, "Replace all (" << replacement << ")");
        dispatch(FuncRequest(LFUN_WORD_REPLACE, datastring));
        d->forward();
+       // replace all wraps around
+       d->wrapAround(true);
        d->check(); // continue spellchecking
        d->canCheck();
 }