From a6edfaaeb02169d90d8b414c480257b1ec0bcaad Mon Sep 17 00:00:00 2001 From: Baole Fang Date: Sun, 12 Mar 2023 22:14:31 -0400 Subject: tdf#150281: Fix CentimetersToPoints in Calc Originally, CentimetersToPoints was implemented as a base method for Writer and Calc. They are both using the same implementation, which is correct for Writer, but wrong for Calc. Since their behavior should be different, I remove the base method and implement a correct one for Calc. Change-Id: If957accdd9be86a96ca6fb711502e49a79bf3223 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148745 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- vbahelper/source/vbahelper/vbaapplicationbase.cxx | 5 ----- 1 file changed, 5 deletions(-) (limited to 'vbahelper') diff --git a/vbahelper/source/vbahelper/vbaapplicationbase.cxx b/vbahelper/source/vbahelper/vbaapplicationbase.cxx index b3ba3138de28..1acf3fcb809a 100644 --- a/vbahelper/source/vbahelper/vbaapplicationbase.cxx +++ b/vbahelper/source/vbahelper/vbaapplicationbase.cxx @@ -407,11 +407,6 @@ void SAL_CALL VbaApplicationBase::OnTime( const uno::Any& aEarliestTime, const O } } -float SAL_CALL VbaApplicationBase::CentimetersToPoints( float Centimeters ) -{ - return o3tl::convert(Centimeters, o3tl::Length::cm, o3tl::Length::pt); -} - uno::Any SAL_CALL VbaApplicationBase::getVBE() { try // return empty object on error -- cgit e='distro/cib/libreoffice-5-1'>distro/cib/libreoffice-5-1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author