]> git.lyx.org Git - lyx.git/blobdiff - src/format.C
Two fixes involving RtL text drawing
[lyx.git] / src / format.C
index 5215e34bb31dc4b9a2ac4341b3c52b349349a12d..9ba1f517e4bfd1c27b7435b7618b724c0e6a5a45 100644 (file)
@@ -27,6 +27,7 @@
 using lyx::support::bformat;
 using lyx::support::compare_ascii_no_case;
 using lyx::support::contains;
+using lyx::support::LibScriptSearch;
 using lyx::support::MakeDisplayPath;
 using lyx::support::OnlyFilename;
 using lyx::support::OnlyPath;
@@ -231,7 +232,7 @@ bool Formats::view(Buffer const & buffer, string const & filename,
                return false;
        }
 
-       string command = format->viewer();
+       string command = LibScriptSearch(format->viewer());
 
        if (format_name == "dvi" &&
            !lyxrc.view_dvi_paper_option.empty()) {