summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/SidebarWin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/docvw/SidebarWin.cxx')
-rw-r--r--sw/source/uibase/docvw/SidebarWin.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
index aee3c3b798e9..e97589c76384 100644
--- a/sw/source/uibase/docvw/SidebarWin.cxx
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
@@ -780,8 +780,8 @@ void SwSidebarWin::DoResize()
mpVScrollbar->SetRange( Range(0, mpOutliner->GetTextHeight()));
//calculate rects for meta- button
- const boost::rational<sal_Int64>& fx( GetMapMode().GetScaleX() );
- const boost::rational<sal_Int64>& fy( GetMapMode().GetScaleY() );
+ const boost::rational<long>& fx( GetMapMode().GetScaleX() );
+ const boost::rational<long>& fy( GetMapMode().GetScaleY() );
const Point aPos( mpMetadataAuthor->GetPosPixel());
Rectangle aRectMetaButton;
@@ -1208,7 +1208,7 @@ sal_Int32 SwSidebarWin::GetScrollbarWidth()
sal_Int32 SwSidebarWin::GetMetaButtonAreaWidth()
{
- const boost::rational<sal_Int64>& f( GetMapMode().GetScaleX() );
+ const boost::rational<long>& f( GetMapMode().GetScaleX() );
if (IsPreview())
return 3 * METABUTTON_AREA_WIDTH * f.numerator() / f.denominator();
else
@@ -1217,7 +1217,7 @@ sal_Int32 SwSidebarWin::GetMetaButtonAreaWidth()
sal_Int32 SwSidebarWin::GetMetaHeight()
{
- const boost::rational<sal_Int64>& f( GetMapMode().GetScaleY() );
+ const boost::rational<long>& f( GetMapMode().GetScaleY() );
return POSTIT_META_HEIGHT * f.numerator() / f.denominator();
}
@@ -1228,7 +1228,7 @@ sal_Int32 SwSidebarWin::GetMinimumSizeWithMeta()
sal_Int32 SwSidebarWin::GetMinimumSizeWithoutMeta()
{
- const boost::rational<sal_Int64>& f( GetMapMode().GetScaleY() );
+ const boost::rational<long>& f( GetMapMode().GetScaleY() );
return POSTIT_MINIMUMSIZE_WITHOUT_META * f.numerator() / f.denominator();
}