]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetGraphicsParams.cpp
InsetListings: change the interface of diaplay function and allow AlignLeft. Applied...
[lyx.git] / src / insets / InsetGraphicsParams.cpp
index e26edc34e140271a5bcb86827f916559bc1466cb..858ce5e8f0bfce0c2bb8770e258fb57c90c54066 100644 (file)
@@ -69,8 +69,8 @@ void InsetGraphicsParams::init()
        lyxscale = 100;                 // lyx scaling in percentage
        display = graphics::DefaultDisplay; // display mode; see preferences
        scale = string("100");                  // output scaling in percentage
-       width = LyXLength();
-       height = LyXLength();
+       width = Length();
+       height = Length();
        keepAspectRatio = false;        // for LaTeX output
        draft = false;                  // draft mode
        noUnzip = false;                // unzip files
@@ -209,11 +209,11 @@ bool InsetGraphicsParams::Read(Lexer & lex, string const & token, string const &
                scale = lex.getString();
        } else if (token == "width") {
                lex.next();
-               width = LyXLength(lex.getString());
+               width = Length(lex.getString());
                scale = string();
        } else if (token == "height") {
                lex.next();
-               height = LyXLength(lex.getString());
+               height = Length(lex.getString());
                scale = string();
        } else if (token == "keepAspectRatio") {
                keepAspectRatio = true;