]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlength.C
don't copy if a reference is fine
[lyx.git] / src / lyxlength.C
index 9c7826a7e2c106bbb27ad2afd49bf094aaaace2c..1ae1de20986383cfded8dd10286ae487e3efe00c 100644 (file)
@@ -59,6 +59,9 @@ string const LyXLength::asLatexString() const
        ostringstream buffer;
        switch(unit_) {
        case PW:
+           buffer << abs(static_cast<int>(val_/100)) << "."
+                  << abs(static_cast<int>(val_)%100) << "\\textwidth";
+           break;
        case PE:
            buffer << abs(static_cast<int>(val_/100)) << "."
                   << abs(static_cast<int>(val_)%100) << "\\columnwidth";