]> git.lyx.org Git - lyx.git/blobdiff - src/LyXRC.cpp
Fix functions that used functions but did not defined it
[lyx.git] / src / LyXRC.cpp
index 73aec189f30cc38b6e7cb28e73167cbf85c4fd73..edd9a58240d12440a98883e7a5d05ef78cedf656 100644 (file)
@@ -25,7 +25,6 @@
 #include "Format.h"
 #include "FuncCode.h"
 #include "FuncRequest.h"
-#include "Lexer.h"
 #include "LyX.h"
 #include "Mover.h"
 #include "SpellChecker.h"
@@ -36,6 +35,7 @@
 #include "support/environment.h"
 #include "support/FileName.h"
 #include "support/filetools.h"
+#include "support/Lexer.h"
 #include "support/lstrings.h"
 #include "support/os.h"
 #include "support/Package.h"
@@ -1147,8 +1147,9 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format)
                                        draw_strategy = DS_PARTIAL;
                                else if (tmp == "backingstore")
                                        draw_strategy = DS_BACKINGSTORE;
+                               else if (tmp == "full")
+                                       draw_strategy = DS_FULL;
                                else {
-                                       draw_strategy = DS_PARTIAL;
                                        LYXERR0("Unrecognized draw strategy " << tmp <<'"');
                                }
                        }
@@ -2055,6 +2056,9 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
                        draw_strategy != system_lyxrc.draw_strategy) {
                        string status;
                        switch (draw_strategy) {
+                       case DS_FULL:
+                               status = "full";
+                               break;
                        case DS_PARTIAL:
                                status = "partial";
                                break;