X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fvspace.C;h=30c58c4774d6a7f922c43623545da482da551b3c;hb=31b56dac8042735f75229ad480b3e98531c181ff;hp=6f3f392d20e00e618bb7033d79f03520ecc32326;hpb=df050b76f529a29fe04cc5a980138e822705ffb1;p=lyx.git diff --git a/src/vspace.C b/src/vspace.C index 6f3f392d20..30c58c4774 100644 --- a/src/vspace.C +++ b/src/vspace.C @@ -1,11 +1,10 @@ -// -*- C++ -*- /* This file is part of * ====================================================== * * LyX, The Document Processor * * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team. + * Copyright 1995-2001 The LyX Team. * * ====================================================== */ @@ -339,13 +338,13 @@ string const LyXLength::asLatexString() const switch(uni) { case PW: case PE: - buffer << "." << abs(static_cast(val)) << "\\columnwidth"; + buffer << abs(static_cast(val/100)) << "." << abs(static_cast(val)%100) << "\\columnwidth"; break; case PP: - buffer << "." << abs(static_cast(val)) << "\\pagewidth"; + buffer << "." << abs(static_cast(val/100)) << "." << abs(static_cast(val)%100) << "\\pagewidth"; break; case PL: - buffer << "." << abs(static_cast(val)) << "\\linewidth"; + buffer << "." << abs(static_cast(val/100)) << "." << abs(static_cast(val)%100) << "\\linewidth"; break; default: buffer << val << unit_name[uni]; // setw?