Dear LyX developers,
today I managed to configure and compile latest 1.3.x lyx from CVS. While testing the resulting binary I detected a minor but serious problem: the lyxlength numbers will be emitted to tex in scientific format when for example pt is the unit. So 140pt will be send to LaTeX as 1.4e+02pt and this breaks the LaTeX-compile step.
I don't know how to fix this correctly but I'll attach my own solution...
Regards,
Stephan
Index: lyxlength.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/lyxlength.C,v retrieving revision 1.26.2.3 diff -u -p -r1.26.2.3 lyxlength.C --- lyxlength.C 2004/12/07 10:48:37 1.26.2.3 +++ lyxlength.C 2004/12/20 14:21:49 @@ -78,7 +78,7 @@ string const LyXLength::asLatexString() buffer << setprecision(2) << val_/100.0 << "\\textheight"; break; default: - buffer << setprecision(2) << val_ << unit_name[unit_]; + buffer << setprecision(2) << setiosflags (std::ios_base::fixed) << val_ << unit_name[unit_]; break; } return STRCONV(buffer.str());