http://bugzilla.lyx.org/show_bug.cgi?id=3416

This patch corrects this problem the right way. I think.

Do we need from_ascii here? If so, can someone tell me why? (It was in
the original code, so I left it.)

Richard

-- 
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Index: bufferparams.C
===================================================================
--- bufferparams.C	(revision 17717)
+++ bufferparams.C	(working copy)
@@ -957,19 +957,19 @@
 			}
 		}
 		if (!topmargin.empty())
-			os << ",tmargin=" << from_ascii(topmargin);
+			os << ",tmargin=" << from_ascii(LyXLength(topmargin).asLatexString());
 		if (!bottommargin.empty())
-			os << ",bmargin=" << from_ascii(bottommargin);
+			os << ",bmargin=" << from_ascii(LyXLength(bottommargin).asLatexString());
 		if (!leftmargin.empty())
-			os << ",lmargin=" << from_ascii(leftmargin);
+			os << ",lmargin=" << from_ascii(LyXLength(leftmargin).asLatexString());
 		if (!rightmargin.empty())
-			os << ",rmargin=" << from_ascii(rightmargin);
+			os << ",rmargin=" << from_ascii(LyXLength(rightmargin).asLatexString());
 		if (!headheight.empty())
-			os << ",headheight=" << from_ascii(headheight);
+			os << ",headheight=" << from_ascii(LyXLength(headheight).asLatexString());
 		if (!headsep.empty())
-			os << ",headsep=" << from_ascii(headsep);
+			os << ",headsep=" << from_ascii(LyXLength(headsep).asLatexString());
 		if (!footskip.empty())
-			os << ",footskip=" << from_ascii(footskip);
+			os << ",footskip=" << from_ascii(LyXLength(footskip).asLatexString());
 		os << "}\n";
 		texrow.newline();
 	}

Reply via email to