]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlength.h
Two fixes involving RtL text drawing
[lyx.git] / src / lyxlength.h
index 2b0f33e6a7584a7978647ead66416f0ceb3f794f..78416cbefd35de1b9b281b30f5044440a0dd7b6b 100644 (file)
@@ -53,6 +53,12 @@ public:
        /// "data" must be a decimal number, followed by a unit
        explicit LyXLength(std::string const & data);
 
+       void swap(LyXLength & rhs)
+       {
+               std::swap(val_, rhs.val_);
+               std::swap(unit_, rhs.unit_);
+       }
+
        ///
        double value() const;
        ///