#include "LyXRC.h"
#include "support/docstream.h"
-#include "support/lassert.h"
#include <sstream>
#include <iomanip>
}
-void Length::swap(Length & rhs)
-{
- std::swap(val_, rhs.val_);
- std::swap(unit_, rhs.unit_);
-}
-
-
string const Length::asString() const
{
ostringstream os;
os << val_ / 100.0 << "\\paperheight";
break;
case UNIT_NONE:
- // One should not try to ouput latex code for an empty length
- LASSERT(false, break);
+ break;
default:
os << val_ << unit_name[unit_];
break;