diff options
-rw-r--r-- | vbahelper/source/vbahelper/vbaapplicationbase.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vbahelper/source/vbahelper/vbaapplicationbase.cxx b/vbahelper/source/vbahelper/vbaapplicationbase.cxx index fe00e0c89739..b3ba3138de28 100644 --- a/vbahelper/source/vbahelper/vbaapplicationbase.cxx +++ b/vbahelper/source/vbahelper/vbaapplicationbase.cxx @@ -409,9 +409,7 @@ void SAL_CALL VbaApplicationBase::OnTime( const uno::Any& aEarliestTime, const O float SAL_CALL VbaApplicationBase::CentimetersToPoints( float Centimeters ) { - // i cm = 28.35 points - static const float rate = 28.35f; - return ( Centimeters * rate ); + return o3tl::convert(Centimeters, o3tl::Length::cm, o3tl::Length::pt); } uno::Any SAL_CALL VbaApplicationBase::getVBE() |