summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-07-17 16:26:35 +0100
committerAndras Timar <andras.timar@collabora.com>2018-08-10 10:56:47 +0200
commitc21a5229f4288c251fde34abf47c2ad303269d0c (patch)
treef3fa0304fad526f449fe8a563df7eb45c54af5da /sw/source/core
parenta10f2e2494e352b42bfd78568118154acf01fc18 (diff)
Resolves: tdf#118545 restore to historic logic
revert commit 9eff9e699e17cc5a8a25895bd28dc8e4ceb8071e Date: Wed Aug 10 09:47:40 2016 +0200 Don't re-check valid SwPageDescs when layouting and then revert commit 60d34e1c840d2c317bb7d0a5b14f4602c22b3fcc Date: Wed Nov 12 20:33:06 2014 +0000 coverity#735517 Logically dead code its possible that this was the original intent, maybe Change-Id: Iff45f1e7f3d7e3791d984eb117779a6f39ebb19c Reviewed-on: https://gerrit.libreoffice.org/57660 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit b26718458b46e23e2d644b1580565d30f3df8871)
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/layout/layact.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx
index 7b23377bb48d..b813f8cbe284 100644
--- a/sw/source/core/layout/layact.cxx
+++ b/sw/source/core/layout/layact.cxx
@@ -444,10 +444,8 @@ void SwLayAction::InternalAction(OutputDevice* pRenderContext)
sal_uInt16 nPercentPageNum = 0;
while ( (pPage && !IsInterrupt()) || m_nCheckPageNum != USHRT_MAX )
{
- // nCheckPageNum is set to USHRT_MAX in this code path after we have
- // checked the SwPageDescs and set tos the minimal changed SwPageDesc.
- // We don't need to check the SwPageDescs without changes.
- if ( (m_nCheckPageNum != USHRT_MAX) && (!pPage || pPage->GetPhyPageNum() >= m_nCheckPageNum) )
+ if ( !pPage && m_nCheckPageNum != USHRT_MAX &&
+ (!pPage || pPage->GetPhyPageNum() >= m_nCheckPageNum) )
{
if ( !pPage || pPage->GetPhyPageNum() > m_nCheckPageNum )
{