X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt%2FGuiSymbols.cpp;h=d6a19269385d6f81f2e82ce403afed5a04f907c7;hb=5cb80b867f4a59c3253487652ba74a29ad5b3f0f;hp=050584a5674409506156393e572cbfc3706da616;hpb=dbe35af5428a37a49030549ca15d809881f26511;p=lyx.git diff --git a/src/frontends/qt/GuiSymbols.cpp b/src/frontends/qt/GuiSymbols.cpp index 050584a567..d6a1926938 100644 --- a/src/frontends/qt/GuiSymbols.cpp +++ b/src/frontends/qt/GuiSymbols.cpp @@ -169,7 +169,7 @@ QString getBlock(char_type c) // c falls into an uncovered area, but we can guess which if (c > unicode_blocks[lastBlock].end - && c < unicode_blocks[lastBlock + 1].start) + && (lastBlock == no_blocks-1 || c < unicode_blocks[lastBlock + 1].start)) return QString(); // guessing was wrong so far. do a real search. @@ -409,12 +409,12 @@ void GuiSymbols::on_symbolsLW_clicked(QModelIndex const & index) } -void GuiSymbols::on_categoryCO_activated(QString const & text) +void GuiSymbols::on_categoryCO_activated(int) { if (!categoryFilterCB->isChecked()) updateSymbolList(false); else - scrollToItem(text); + scrollToItem(categoryCO->currentText()); } @@ -504,12 +504,6 @@ void GuiSymbols::dispatchParams() } -Dialog * createGuiSymbols(GuiView & lv) -{ - return new GuiSymbols(lv); -} - - } // namespace frontend } // namespace lyx