From 0d79d216886a71436e705c93829ed66a33270a9c Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 21 Oct 2020 15:31:38 +0200 Subject: long->tools::Long in pyuno..sd Change-Id: I67c1218d225f49ea9ce789433283ab85275e39a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104627 Tested-by: Noel Grandin Reviewed-by: Noel Grandin --- sd/source/ui/view/outlview.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sd/source/ui/view/outlview.cxx') diff --git a/sd/source/ui/view/outlview.cxx b/sd/source/ui/view/outlview.cxx index 11a7d332da8b..8abad53cccc6 100644 --- a/sd/source/ui/view/outlview.cxx +++ b/sd/source/ui/view/outlview.cxx @@ -1542,7 +1542,7 @@ IMPL_LINK(OutlineView, PaintingFirstLineHdl, PaintFirstLineInfo*, pInfo, void) if( !(pPara && ::Outliner::HasParaFlag(pPara,ParaFlag::ISPAGE)) ) return; - long nPage = 0; // todo, printing?? + ::tools::Long nPage = 0; // todo, printing?? for ( sal_Int32 n = 0; n <= pInfo->mnPara; n++ ) { Paragraph* p = mrOutliner.GetParagraph( n ); @@ -1550,8 +1550,8 @@ IMPL_LINK(OutlineView, PaintingFirstLineHdl, PaintFirstLineInfo*, pInfo, void) nPage++; } - long nBulletHeight = static_cast(mrOutliner.GetLineHeight( pInfo->mnPara )); - long nFontHeight = 0; + ::tools::Long nBulletHeight = static_cast<::tools::Long>(mrOutliner.GetLineHeight( pInfo->mnPara )); + ::tools::Long nFontHeight = 0; if ( !rEditEngine.IsFlatMode() ) { nFontHeight = nBulletHeight / 5; @@ -1569,9 +1569,9 @@ IMPL_LINK(OutlineView, PaintingFirstLineHdl, PaintFirstLineInfo*, pInfo, void) if (aImageSize.Width() != 0) { const float fImageRatio = static_cast(aImageSize.Height()) / static_cast(aImageSize.Width()); - aImageSize.setWidth( static_cast( fImageRatio * fImageHeight ) ); + aImageSize.setWidth( static_cast<::tools::Long>( fImageRatio * fImageHeight ) ); } - aImageSize.setHeight( static_cast(fImageHeight) ); + aImageSize.setHeight( static_cast<::tools::Long>(fImageHeight) ); Point aImagePos( pInfo->mrStartPos ); aImagePos.AdjustX(aOutSize.Width() - aImageSize.Width() - aOffset.Width() ) ; -- cgit