mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
1545079a48
commit
1df42757ed
@ -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):
|
||||
|
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user