]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
update SCons
[lyx.git] / src / Buffer.cpp
index fd483fa64bba02b26eddbc7b8da653d4da3761ba..b399f6483117539f03861d0271d942d4d2425324 100644 (file)
@@ -126,7 +126,7 @@ namespace {
 
 // Do not remove the comment below, so we get merge conflict in
 // independent branches. Instead add your own.
-int const LYX_FORMAT = 394; // uwestoehr: support for \makebox
+int const LYX_FORMAT = 397; // rgh: remove Nameref support
 
 typedef map<string, bool> DepClean;
 typedef map<docstring, pair<InsetLabel const *, Buffer::References> > RefCache;
@@ -2037,6 +2037,7 @@ void Buffer::dispatch(FuncRequest const & func, DispatchResult & dr)
                        branch->setSelected(func.action() == LFUN_BRANCH_ACTIVATE);
                        dr.setError(false);
                        dr.update(Update::Force);
+                       dr.forceBufferUpdate();
                }
                break;
        }
@@ -2071,8 +2072,10 @@ void Buffer::dispatch(FuncRequest const & func, DispatchResult & dr)
                        }
                }
 
-               if (success)
+               if (success) {
                        dr.update(Update::Force);
+                       dr.forceBufferUpdate();
+               }
                break;
        }
 
@@ -2198,8 +2201,10 @@ void Buffer::dispatch(FuncRequest const & func, DispatchResult & dr)
                Language const * newL = languages.getLanguage(argument);
                if (!newL || oldL == newL)
                        break;
-               if (oldL->rightToLeft() == newL->rightToLeft() && !isMultiLingual())
+               if (oldL->rightToLeft() == newL->rightToLeft() && !isMultiLingual()) {
                        changeLanguage(oldL, newL);
+                       dr.forceBufferUpdate();
+               }
                break;
        }