From 8613a2f29e99657e82aa8d040cd01751ba1d18aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Sun, 12 Aug 2007 18:58:59 +0000 Subject: [PATCH] fix crash after assertion when using %s with integer arguments git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19472 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index b474836e71..5e9972138c 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -932,7 +932,7 @@ bool Buffer::makeLaTeXFile(FileName const & fname, lyxerr << "Caught iconv exception: " << e.what() << endl; failed_export = true; } - catch (std::exception const & e) { + catch (std::exception const & e) { lyxerr << "Caught \"normal\" exception: " << e.what() << endl; failed_export = true; } @@ -1796,7 +1796,7 @@ void Buffer::getSourceCode(odocstream & os, pit_type par_begin, runparams.par_end = par_end; if (par_begin + 1 == par_end) os << "% " - << bformat(_("Preview source code for paragraph %1$s"), par_begin) + << bformat(_("Preview source code for paragraph %1$d"), par_begin) << "\n\n"; else os << "% " -- 2.39.2