mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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
This commit is contained in:
parent
5d356249a0
commit
8613a2f29e
@ -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 << "% "
|
||||
|
Loading…
Reference in New Issue
Block a user