summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorBaole Fang <baole.fang@gmail.com>2023-03-12 22:14:31 -0400
committerMike Kaganski <mike.kaganski@collabora.com>2023-03-13 15:16:24 +0000
commita6edfaaeb02169d90d8b414c480257b1ec0bcaad (patch)
treeb1d42712551408645991abdf25b36f7230c65e9f /vbahelper
parent9d829facd92d51c7eba8a8cc30bac4d5fbdea112 (diff)
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 <mike.kaganski@collabora.com>
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbaapplicationbase.cxx5
1 files changed, 0 insertions, 5 deletions
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