]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.cpp
Compile fix for qt versions below 4.6.
[lyx.git] / src / lyxfind.cpp
index 8a692eaf280f9e4bb492ffb48d527a6fb5b5a3e5..86d8b9818189f11ded597a7e93c991317e18d07c 100644 (file)
@@ -1029,7 +1029,7 @@ docstring latexifyFromCursor(DocIterator const & cur, int len)
                MathData::const_iterator it_end = ( ( len == -1 || cs.pos() + len > int(md.size()) )
                        ? md.end() : md.begin() + cs.pos() + len );
                for (MathData::const_iterator it = md.begin() + cs.pos(); it != it_end; ++it)
-                               ods << *it;
+                       ods << asString(*it);
 
                // Retrieve the math environment type, and add '$' or '$]'
                // or others (\end{equation}) accordingly