Fixed >=100% problem in LyXLenght-Class latex output.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1941 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2001-04-18 15:06:30 +00:00
parent 1545079a48
commit 1df42757ed
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2001-04-18 Juergen Vigna <jug@sad.it>
* vspace.C (asLatexString): fixed the 100% problem.
2001-04-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* lyxfunc.C (Dispatch):

View File

@ -339,13 +339,13 @@ string const LyXLength::asLatexString() const
switch(uni) {
case PW:
case PE:
buffer << "." << abs(static_cast<int>(val)) << "\\columnwidth";
buffer << abs(static_cast<int>(val/100)) << "." << abs(static_cast<int>(val)%100) << "\\columnwidth";
break;
case PP:
buffer << "." << abs(static_cast<int>(val)) << "\\pagewidth";
buffer << "." << abs(static_cast<int>(val/100)) << "." << abs(static_cast<int>(val)%100) << "\\pagewidth";
break;
case PL:
buffer << "." << abs(static_cast<int>(val)) << "\\linewidth";
buffer << "." << abs(static_cast<int>(val/100)) << "." << abs(static_cast<int>(val)%100) << "\\linewidth";
break;
default:
buffer << val << unit_name[uni]; // setw?