summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/laycache.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/laycache.cxx')
-rw-r--r--sw/source/core/layout/laycache.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/layout/laycache.cxx b/sw/source/core/layout/laycache.cxx
index 807a40b14c67..1753d8544e50 100644
--- a/sw/source/core/layout/laycache.cxx
+++ b/sw/source/core/layout/laycache.cxx
@@ -570,10 +570,10 @@ sal_uLong SwLayHelper::CalcPageCount()
nMaxParaPerPage = nNdCount / nPgCount;
else
{
- nMaxParaPerPage = Max( sal_uLong(20),
+ nMaxParaPerPage = std::max( sal_uLong(20),
sal_uLong(20 + nNdCount / 1000 * 3) );
const sal_uLong nMax = 53;
- nMaxParaPerPage = Min( nMaxParaPerPage, nMax );
+ nMaxParaPerPage = std::min( nMaxParaPerPage, nMax );
nPgCount = nNdCount / nMaxParaPerPage;
}
if ( nNdCount < 1000 )
@@ -716,7 +716,7 @@ bool SwLayHelper::CheckInsert( sal_uLong nNodeIndex )
++nCnt;
pTmp = pTmp->GetNext();
} while( pTmp );
- nMaxRowPerPage = Max( sal_uLong(2), nMaxParaPerPage / nCnt );
+ nMaxRowPerPage = std::max( sal_uLong(2), nMaxParaPerPage / nCnt );
}
bLongTab = true;
}