From 93a3820a2bc2c417ba1a76f72b8968294618964b Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Mon, 13 Jun 2005 23:23:00 +0000 Subject: [PATCH] Quote the LaTeX file name passed to the lyxpreview script. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10059 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/graphics/ChangeLog | 5 +++++ src/graphics/PreviewLoader.C | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/graphics/ChangeLog b/src/graphics/ChangeLog index 2d32fd615f..1edeadce8b 100644 --- a/src/graphics/ChangeLog +++ b/src/graphics/ChangeLog @@ -1,3 +1,8 @@ +2005-06-12 Angus Leeming + + * PreviewLoader.C (startLoading): quote the name of the LaTeX file + passed to the lyxpreview converter script. + 2005-04-17 Angus Leeming * GraphicsConverter.C (c-tor): quote conversion commands correctly. diff --git a/src/graphics/PreviewLoader.C b/src/graphics/PreviewLoader.C index ddedc11b2c..21576caeeb 100644 --- a/src/graphics/PreviewLoader.C +++ b/src/graphics/PreviewLoader.C @@ -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); -- 2.39.5