]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSymbols.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiSymbols.cpp
index 9896b768eec3a63572db91e692c6ff4d06c14cd9..6bd5ba210a4bf1f9fcbed1c4751b482422dd8749 100644 (file)
@@ -31,6 +31,8 @@
 #include <QListWidgetItem>
 #include <QString>
 
+#include <cstdio>
+
 using namespace std;
 
 namespace lyx {
@@ -432,7 +434,7 @@ void GuiSymbols::updateSymbolList(bool update_combo)
                if (cat == QChar::Other_Control || cat == QChar::Separator_Space)
                        continue;
                ++numItem;
-               if (show_all || c >= range_start && c <= range_end)
+               if (show_all || (c >= range_start && c <= range_end))
                        s.append(c);
                if (update_combo) {
                        QString block = getBlock(c);