]> git.lyx.org Git - features.git/commitdiff
the final word on bug 1523?
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 29 Dec 2004 15:38:48 +0000 (15:38 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 29 Dec 2004 15:38:48 +0000 (15:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9410 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/lyxlength.C

index 8536463be9d333de29e2d2f0554fff991ce2e806..7f65aeab7ee7fb7b7c40d8a26ba255faf69c0625 100644 (file)
@@ -1,3 +1,7 @@
+2004-12-29  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * lyxlength.C (asLatexString): get rid of setprecision
+
 2004-12-28  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * text2.C (setLayout): remove unused variable endpit.
index d91890e864513eda70e127b41e6bca7cbaf31442..70a8aaad4204d20c66f3ec7a7b6330bc8c2fc357 100644 (file)
@@ -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();