On Sat, Nov 19, 2016 at 12:41:13AM +0100, Guillaume Munch wrote:

> I cannot reproduce with the provided info (2.3dev & Qt5).

A bisect led to b3bed292. The attached patch fixes it for me, although I
don't understand my patch. What was the point of subtracting 1 from
symbols.size()?

Scott
diff --git a/src/frontends/qt4/GuiSymbols.cpp b/src/frontends/qt4/GuiSymbols.cpp
index a08d7e5..287dc12 100644
--- a/src/frontends/qt4/GuiSymbols.cpp
+++ b/src/frontends/qt4/GuiSymbols.cpp
@@ -246,7 +246,7 @@ public:
        void setSymbols(QList<char_type> const & symbols)
        {
                beginResetModel();
-               beginInsertRows(QModelIndex(), 0, symbols.size() - 1);
+               beginInsertRows(QModelIndex(), 0, symbols.size());
                symbols_ = symbols;
                endInsertRows();
                endResetModel();

Attachment: signature.asc
Description: PGP signature

Reply via email to