]> git.lyx.org Git - lyx.git/blobdiff - src/output_plaintext.cpp
adjust
[lyx.git] / src / output_plaintext.cpp
index 6252056646124da202544a9835069a8a23dfdd47..39c5f1a13403a7522241eb311048c2bfaf104c5a 100644 (file)
@@ -16,6 +16,7 @@
 #include "BufferParams.h"
 #include "debug.h"
 #include "gettext.h"
+#include "Layout.h"
 #include "output.h"
 #include "OutputParams.h"
 #include "Paragraph.h"
@@ -89,7 +90,7 @@ void writePlaintextParagraph(Buffer const & buf,
        depth_type depth = par.params().depth();
 
        // First write the layout
-       string const & tmp = par.layout()->name();
+       string const tmp = to_utf8(par.layout()->name());
        if (compare_ascii_no_case(tmp, "itemize") == 0) {
                ltype = 1;
                ltype_depth = depth + 1;