Fix for bug 3416. Change output routine for geometry package.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17734 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2007-04-05 13:51:42 +00:00
parent 6a383e5f9b
commit 21cc83ef2b

View File

@ -957,19 +957,19 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
} }
} }
if (!topmargin.empty()) if (!topmargin.empty())
os << ",tmargin=" << from_ascii(topmargin); os << ",tmargin=" << from_ascii(LyXLength(topmargin).asLatexString());
if (!bottommargin.empty()) if (!bottommargin.empty())
os << ",bmargin=" << from_ascii(bottommargin); os << ",bmargin=" << from_ascii(LyXLength(bottommargin).asLatexString());
if (!leftmargin.empty()) if (!leftmargin.empty())
os << ",lmargin=" << from_ascii(leftmargin); os << ",lmargin=" << from_ascii(LyXLength(leftmargin).asLatexString());
if (!rightmargin.empty()) if (!rightmargin.empty())
os << ",rmargin=" << from_ascii(rightmargin); os << ",rmargin=" << from_ascii(LyXLength(rightmargin).asLatexString());
if (!headheight.empty()) if (!headheight.empty())
os << ",headheight=" << from_ascii(headheight); os << ",headheight=" << from_ascii(LyXLength(headheight).asLatexString());
if (!headsep.empty()) if (!headsep.empty())
os << ",headsep=" << from_ascii(headsep); os << ",headsep=" << from_ascii(LyXLength(headsep).asLatexString());
if (!footskip.empty()) if (!footskip.empty())
os << ",footskip=" << from_ascii(footskip); os << ",footskip=" << from_ascii(LyXLength(footskip).asLatexString());
os << "}\n"; os << "}\n";
texrow.newline(); texrow.newline();
} }