[Libreoffice-commits] core.git: sw/source
Jan Holesovsky
kendy at collabora.com
Mon Jun 20 08:18:00 UTC 2016
sw/source/core/doc/DocumentStatisticsManager.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 2d67042dc2f0672d1aca4784e61eb2a5d0e91e08
Author: Jan Holesovsky <kendy at collabora.com>
Date: Mon Jun 20 10:15:23 2016 +0200
tdf#95797: Don't jump to the cursor position after auto-save.
Apparently the commit 07c7c88bc2d9d860ea92ab562ea0431ec1949b29 changed
the condition; I suppose that not deliberately.
Big thanks to raal for the bisect!
Change-Id: I775e133396ceb763e31aca101d365880652e1ac8
diff --git a/sw/source/core/doc/DocumentStatisticsManager.cxx b/sw/source/core/doc/DocumentStatisticsManager.cxx
index 90bc30b..51d398e 100644
--- a/sw/source/core/doc/DocumentStatisticsManager.cxx
+++ b/sw/source/core/doc/DocumentStatisticsManager.cxx
@@ -49,9 +49,9 @@ namespace
{
if (!m_pViewShell)
return;
- for(SwViewShell& rShell : m_pViewShell->GetRingContainer())
+ for (SwViewShell& rShell : m_pViewShell->GetRingContainer())
{
- if(rShell.IsViewLocked())
+ if (!rShell.IsViewLocked())
{
m_aViewWasUnLocked.push_back(&rShell);
rShell.LockView(true);
More information about the Libreoffice-commits
mailing list