summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-04-16 23:10:45 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-04-17 03:56:59 +0200
commitea9904c89608d561f6bde3379408208bbb24fe35 (patch)
tree4648cbc73b7a48ea3361f51280a9713be38f0afd /sfx2
parent0957ee9f5d379c80fca4027c187b471118d0490d (diff)
Drop FRound, and use generalized basegfx::fround
Change-Id: I7447e649dc3ef4e51242f69c7486a3e84e103d2e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166159 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objcont.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx
index 8c3939b5f392..7c1f6b72014c 100644
--- a/sfx2/source/doc/objcont.cxx
+++ b/sfx2/source/doc/objcont.cxx
@@ -172,13 +172,13 @@ bool SfxObjectShell::CreatePreview_Impl( bool bFullContent, VirtualDevice* pDevi
double fWH = static_cast< double >( aSizePix.Width() ) / aSizePix.Height();
if ( fWH <= 1.0 )
{
- aSizePix.setWidth( FRound( nMaximumExtent * fWH ) );
+ aSizePix.setWidth(basegfx::fround<tools::Long>(nMaximumExtent * fWH));
aSizePix.setHeight( nMaximumExtent );
}
else
{
aSizePix.setWidth( nMaximumExtent );
- aSizePix.setHeight( FRound( nMaximumExtent / fWH ) );
+ aSizePix.setHeight(basegfx::fround<tools::Long>(nMaximumExtent / fWH));
}
}
// do it 4x larger to be able to scale it down & get beautiful antialias