gcc warning fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27449 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-11-15 13:56:39 +00:00
parent b879aa5ade
commit fb41750883

View File

@ -710,11 +710,12 @@ string const LaTeXFeatures::getMacros() const
for (; pit != pend; ++pit)
macros << *pit << '\n';
if (mustProvide("papersize"))
if (mustProvide("papersize")) {
if (runparams_.flavor == OutputParams::LATEX)
macros << papersizedvi_def << '\n';
else
macros << papersizepdf_def << '\n';
}
if (mustProvide("LyX"))
macros << lyx_def << '\n';