>>>>> "Matthew" == Matthew Brand <[EMAIL PROTECTED]> writes:
Matthew> Bravo to you all for such a well-conceived piece of software. Matthew> A small bug in LaTeX generation in version 1.2.1: Matthew> If you include an external graphic and specify that its Matthew> dimensions should be less than 10% of some length unit (e.g., Matthew> 5% of textwidth) the generated LaTeX incorrectly specifies Matthew> \includegraphics[width=0.5\textwidth,height=0.5\textwidth]{... Matthew> which is 10 times too large. The correct LaTeX should be Matthew> \includegraphics[width=0.05\textwidth,height=0.05\textwidth]{... Matthew> Don't forget that leading zero... Hello, I can conform that this bug is still present in 1.3.1cvs. This is really stupid... The problem is the following code in lyxlength.C: string const LyXLength::asLatexString() const { ostringstream buffer; switch (unit_) { case PTW: buffer << abs(static_cast<int>(val_/100)) << '.' << abs(static_cast<int>(val_)%100) << "\\textwidth"; break; This is obviously broken. Who had this bright idea? ;) What was the reason why double(abs(val_))/100 is not good enough? I remember some discussion on the subject, but not the substance of these discussions. JMarc