From: Jean-Marc Lasgouttes Date: Wed, 29 Dec 2004 15:38:48 +0000 (+0000) Subject: the final word on bug 1523? X-Git-Tag: 1.6.10~14711 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2b336a5d3ececed515911ffea24d13f83681d8ad;p=features.git the final word on bug 1523? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9410 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index 8536463be9..7f65aeab7e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2004-12-29 Jean-Marc Lasgouttes + + * lyxlength.C (asLatexString): get rid of setprecision + 2004-12-28 Jean-Marc Lasgouttes * text2.C (setLayout): remove unused variable endpit. diff --git a/src/lyxlength.C b/src/lyxlength.C index d91890e864..70a8aaad42 100644 --- a/src/lyxlength.C +++ b/src/lyxlength.C @@ -24,7 +24,6 @@ using std::ostringstream; -using std::setprecision; using std::string; @@ -64,25 +63,25 @@ string const LyXLength::asLatexString() const ostringstream os; switch (unit_) { case PTW: - os << setprecision(2) << val_/100.0 << "\\textwidth"; + os << val_ / 100.0 << "\\textwidth"; break; case PCW: - os << setprecision(2) << val_/100.0 << "\\columnwidth"; + os << val_ / 100.0 << "\\columnwidth"; break; case PPW: - os << setprecision(2) << val_/100.0 << "\\paperwidth"; + os << val_ / 100.0 << "\\paperwidth"; break; case PLW: - os << setprecision(2) << val_/100.0 << "\\linewidth"; + os << val_ / 100.0 << "\\linewidth"; break; case PPH: - os << setprecision(2) << val_/100.0 << "\\paperheight"; + os << val_ / 100.0 << "\\paperheight"; break; case PTH: - os << setprecision(2) << val_/100.0 << "\\textheight"; + os << val_ / 100.0 << "\\textheight"; break; default: - os << setprecision(2) << val_ << unit_name[unit_]; + os << val_ << unit_name[unit_]; break; } return os.str();