From 4fabfb654bc65a564da1162f10f441efce167706 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Mon, 20 Jun 2016 10:15:23 +0200 Subject: 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 --- sw/source/core/doc/DocumentStatisticsManager.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/core/doc') diff --git a/sw/source/core/doc/DocumentStatisticsManager.cxx b/sw/source/core/doc/DocumentStatisticsManager.cxx index 81ed9f4481f2..dfa6d1df9840 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); -- cgit v1.2.3