]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/PreviewLoader.C
Make enter button work in GTK text dialog
[lyx.git] / src / graphics / PreviewLoader.C
index 8dbc512ce32f4c1a51d4ad977445b7f9a10d6108..21576caeebb0058149be0a5e979a647a42b6cca6 100644 (file)
@@ -320,7 +320,7 @@ PreviewLoader::Impl::Impl(PreviewLoader & p, Buffer const & b)
        : parent_(p), buffer_(b), font_scaling_factor_(0.0)
 {
        font_scaling_factor_ = 0.01 * lyxrc.dpi * lyxrc.zoom *
-               support::strToDbl(lyxrc.preview_scale_factor);
+               convert<double>(lyxrc.preview_scale_factor);
 
        lyxerr[Debug::GRAPHICS] << "The font scaling factor is "
                                << font_scaling_factor_ << endl;
@@ -498,7 +498,8 @@ void PreviewLoader::Impl::startLoading()
        // The conversion command.
        ostringstream cs;
        cs << pconverter_->command << ' ' << pconverter_->to << ' '
-          << latexfile << ' ' << int(font_scaling_factor_) << ' '
+          << support::QuoteName(latexfile) << ' ' 
+          << int(font_scaling_factor_) << ' '
           << lyx_gui::hexname(LColor::preview) << ' '
           << lyx_gui::hexname(LColor::background);