]> git.lyx.org Git - lyx.git/blobdiff - src/Length.cpp
Fix layout bug. Pasting text into a cell tried to set Standard layout, because
[lyx.git] / src / Length.cpp
index 49f1d633c4a16dea90fdabcebcba06df261a4779..90da83a74ca7080a9fbc2b75762ce761f13501f0 100644 (file)
 #include <sstream>
 #include <iomanip>
 
+using namespace std;
 
 namespace lyx {
 
-using std::ostringstream;
-using std::string;
-
 
 /////////////////////////////////////////////////////////////////////
 //
@@ -59,6 +57,13 @@ 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;