]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/QChanges.C
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QChanges.C
index dc75ee7ab2bba7caec3cf87ad2e86ee06ec4216d..79e03757036c5e0d3ca13e8d698d63365819e951 100644 (file)
@@ -58,14 +58,14 @@ void QChanges::next()
 {
        controller().find();
 
-       string text;
-       string author(controller().getChangeAuthor());
-       string date(controller().getChangeDate());
+       docstring text;
+       docstring author = lyx::from_utf8(controller().getChangeAuthor());
+       docstring date = lyx::from_utf8(controller().getChangeDate());
 
        if (!author.empty())
-               text += bformat(lyx::to_utf8(_("Change by %1$s\n\n")), author);
+               text += bformat(_("Change by %1$s\n\n"), author);
        if (!date.empty())
-               text += bformat(lyx::to_utf8(_("Change made at %1$s\n")), date);
+               text += bformat(_("Change made at %1$s\n"), date);
 
        dialog_->changeTB->setPlainText(toqstr(text));
 }