]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
* GuiPrefs: fix typo.
[lyx.git] / src / Buffer.cpp
index f039b180b36b6ae9e8766054179dd2ee3d155f86..eb03f06bf670a77020335b1aeb196b5a6f7e87db 100644 (file)
@@ -124,7 +124,7 @@ namespace {
 
 // Do not remove the comment below, so we get merge conflict in
 // independent branches. Instead add your own.
-int const LYX_FORMAT = 349;  // jspitzm: initial XeTeX support
+int const LYX_FORMAT = 351;  // uwestoehr: support for page background color
 
 typedef map<string, bool> DepClean;
 typedef map<docstring, pair<InsetLabel const *, Buffer::References> > RefCache;
@@ -1589,7 +1589,7 @@ void Buffer::dispatch(FuncRequest const & func, DispatchResult & dr)
                                LYXERR0("Branch " << branchName << " does not exist.");
                                dr.setError(true);
                                docstring const msg = 
-                                       bformat(_("Branch \%1$s\" does not exist."), branchName);
+                                       bformat(_("Branch \"%1$s\" does not exist."), branchName);
                                dr.setMessage(msg);
                        } else {
                                branch->setSelected(func.action == LFUN_BRANCH_ACTIVATE);
@@ -2654,6 +2654,9 @@ string Buffer::bufferFormat() const
 
 string Buffer::getDefaultOutputFormat() const
 {
+       if (!params().defaultOutputFormat.empty()
+           && params().defaultOutputFormat != "default")
+               return params().defaultOutputFormat;
        typedef vector<Format const *> Formats;
        Formats formats = exportableFormats(true);
        if (isDocBook()