]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiKeySymbol.cpp
fix completion painting for RTL (inline completion and completion list)
[lyx.git] / src / frontends / qt4 / GuiKeySymbol.cpp
index 99aee838c327003e4c4ee101bc6ad188ad6f0fcf..4a39c686e979b26406804e51dab1e8f69ca1a4e9 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "qt_helpers.h"
 
+#include "support/lassert.h"
 #include "support/debug.h"
 
 #include "Encoding.h"
@@ -24,8 +25,6 @@
 #include <QEvent>
 #include <QTextCodec>
 
-#include "boost/assert.hpp"
-
 #include <map>
 #include <string>
 
@@ -596,7 +595,7 @@ static char encode(string const & encoding, QString const & str)
                return 0;
        }
 
-       LYXERR(Debug::KEY, "Using codec " << fromqstr(codec->name()));
+       LYXERR(Debug::KEY, "Using codec " << codec->name());
 
        if (!codec->canEncode(str)) {
                LYXERR(Debug::KEY, "Oof. Can't encode the text !");
@@ -617,7 +616,7 @@ void setKeySymbol(KeySymbol * sym, QKeyEvent * ev)
                return;
        }
        LYXERR(Debug::KEY, "Getting key " << ev->key() << ", with text '"
-               << fromqstr(ev->text()) << "'");
+               << ev->text() << "'");
        // This is unsafe because ev->text() is the unicode representation of the
        // key, not the name of the key. For example, Ctrl-x and Alt-x produce 
        // different texts.
@@ -669,7 +668,7 @@ char_type KeySymbol::getUCSEncoded() const
                return 0;
 
        // UTF16 has a maximum of two characters.
-       BOOST_ASSERT(text_.size() <= 2);
+       LASSERT(text_.size() <= 2, /**/);
 
        if (lyxerr.debugging() && text_.size() > 1) {
                // We don't know yet how well support the full ucs4 range.