]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlength.C
Use Gtk::ComboBoxText::clear() instead of clear_items(), which only exists in newer...
[lyx.git] / src / lyxlength.C
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();