summaryrefslogtreecommitdiff
path: root/sw/source/core/view/pagepreviewlayout.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/view/pagepreviewlayout.cxx')
-rw-r--r--sw/source/core/view/pagepreviewlayout.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/view/pagepreviewlayout.cxx b/sw/source/core/view/pagepreviewlayout.cxx
index d4702d186b60..f7fdcc0efae4 100644
--- a/sw/source/core/view/pagepreviewlayout.cxx
+++ b/sw/source/core/view/pagepreviewlayout.cxx
@@ -514,13 +514,13 @@ void SwPagePreviewLayout::CalcDocPreviewPaintRect()
Size aSize;
if ( mbDoesLayoutColsFitIntoWindow )
- aSize.setWidth( std::min<sal_Int32>( mnPreviewLayoutWidth,
+ aSize.setWidth( std::min( mnPreviewLayoutWidth,
maPreviewDocRect.GetWidth() - aTopLeftPos.X() ) );
else
aSize.setWidth( std::min( maPreviewDocRect.GetWidth() - aTopLeftPos.X(),
maWinSize.Width() - maAdditionalPaintOffset.X() ) );
if ( mbDoesLayoutRowsFitIntoWindow )
- aSize.setHeight( std::min<sal_Int32>( mnPreviewLayoutHeight,
+ aSize.setHeight( std::min( mnPreviewLayoutHeight,
maPreviewDocRect.GetHeight() - aTopLeftPos.Y() ) );
else
aSize.setHeight( std::min( maPreviewDocRect.GetHeight() - aTopLeftPos.Y(),
@@ -774,7 +774,7 @@ Point SwPagePreviewLayout::GetPreviewStartPosForNewScale(
// check, if new y-position is outside document preview
if ( aNewPaintStartPos.Y() > maPreviewDocRect.Bottom() )
aNewPaintStartPos.setY(
- std::max<sal_Int32>( 0, maPreviewDocRect.Bottom() - mnPreviewLayoutHeight ) );
+ std::max( 0L, maPreviewDocRect.Bottom() - mnPreviewLayoutHeight ) );
}
}