From 5fef3ebe9efd4d4e8569e620e82771f5560c5524 Mon Sep 17 00:00:00 2001 From: Luv Sharma Date: Mon, 5 Feb 2024 19:36:14 +0530 Subject: tdf#148645 getDec2Hex now takes integer 'places' value (updated) Change-Id: Ibc793f7654c9ec9b1a96b3caf2c16f2fde14c030 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163005 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- scaddins/qa/analysis.cxx | 2 ++ scaddins/source/analysis/analysishelper.cxx | 3 +++ 2 files changed, 5 insertions(+) (limited to 'scaddins') diff --git a/scaddins/qa/analysis.cxx b/scaddins/qa/analysis.cxx index 5a8cec506e91..1afe4837e276 100644 --- a/scaddins/qa/analysis.cxx +++ b/scaddins/qa/analysis.cxx @@ -51,6 +51,8 @@ CPPUNIT_TEST_FIXTURE(Test, test_getDec2Hex) mxAnalysis->getDec2Hex({}, 110, css::uno::Any(sal_uInt32(10)))); CPPUNIT_ASSERT_EQUAL(u"000000006E"_ustr, mxAnalysis->getDec2Hex({}, 110, css::uno::Any(sal_Int64(10)))); + CPPUNIT_ASSERT_EQUAL(u"000000006E"_ustr, + mxAnalysis->getDec2Hex({}, 110, css::uno::Any(sal_uInt64(10)))); CPPUNIT_ASSERT_EQUAL(u"000000006E"_ustr, mxAnalysis->getDec2Hex({}, 110, css::uno::Any(double(10)))); CPPUNIT_ASSERT_EQUAL(u"000000006E"_ustr, diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx index 7a0419c67fe9..721e23e28f87 100644 --- a/scaddins/source/analysis/analysishelper.cxx +++ b/scaddins/source/analysis/analysishelper.cxx @@ -2747,6 +2747,9 @@ bool ScaAnyConverter::getDouble( } break; case uno::TypeClass_HYPER: + rfResult = rAny.get(); + break; + case uno::TypeClass_UNSIGNED_HYPER: rfResult = rAny.get(); break; default: -- cgit