summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2016-06-20 10:15:23 +0200
committerJan Holesovsky <kendy@collabora.com>2016-06-20 10:17:29 +0200
commit2d67042dc2f0672d1aca4784e61eb2a5d0e91e08 (patch)
treeffabcf98ce5f2effa88c990ccb97a5b3b5d83018
parent9924925d2c815294d677411acfca8725611d0ca0 (diff)
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
-rw-r--r--sw/source/core/doc/DocumentStatisticsManager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/DocumentStatisticsManager.cxx b/sw/source/core/doc/DocumentStatisticsManager.cxx
index 90bc30b8e268..51d398e9ceb9 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);