]> git.lyx.org Git - features.git/blobdiff - src/graphics/GraphicsParams.cpp
Fix bug #4812 (Layout in local directory lost on Save As, Copying)
[features.git] / src / graphics / GraphicsParams.cpp
index e5c9b3d24f75fb4302737ff6307076159b552b5e..c1c32a0aba2fe41d1a7d759d4427abbd076eac4b 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "Length.h"
 
+#include <cstdlib>
 #include <sstream>
 
 using namespace std;
@@ -22,10 +23,10 @@ namespace lyx {
 namespace graphics {
 
 Params::Params()
-       : display(ColorDisplay),
+       : display(true),
          scale(100),
-         angle(0),
-         icon("")
+         pixel_ratio(1.0),
+         angle(0)
 {}
 
 
@@ -35,8 +36,8 @@ bool operator==(Params const & a, Params const & b)
                a.display == b.display &&
                a.bb == b.bb &&
                a.scale == b.scale &&
-               a.angle == b.angle &&
-               a.icon == b.icon);
+               a.pixel_ratio == b.pixel_ratio &&
+               a.angle == b.angle);
 }