X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxlength.C;h=70a8aaad4204d20c66f3ec7a7b6330bc8c2fc357;hb=fd2124c83dfcfeaf33b64d1d33c8ceb8d9f5f9b9;hp=d91890e864513eda70e127b41e6bca7cbaf31442;hpb=e13d9157bca1cfce49ed43de7df3c6619bf42a1f;p=lyx.git 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();