]> git.lyx.org Git - lyx.git/blobdiff - src/Length.cpp
More tweaking of boundary setting at end of row
[lyx.git] / src / Length.cpp
index bb9ec6a3b90b8096d46af014a537cdd869a9527f..0deed7481c915f3e2e70b6f2f100c80d7d993d64 100644 (file)
@@ -19,7 +19,6 @@
 #include "LyXRC.h"
 
 #include "support/docstream.h"
-#include "support/lassert.h"
 
 #include <sstream>
 #include <iomanip>
@@ -58,13 +57,6 @@ Length::Length(string const & data)
 }
 
 
-void Length::swap(Length & rhs)
-{
-       std::swap(val_, rhs.val_);
-       std::swap(unit_, rhs.unit_);
-}
-
-
 string const Length::asString() const
 {
        ostringstream os;
@@ -106,8 +98,7 @@ string const Length::asLatexString() const
                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;