diff options
-rw-r--r-- | sw/source/core/layout/layact.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx index 761a85c51741..30f6499b01f9 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 ) { |