tdf#148645 getDec2Hex now takes integer 'places' value
Change-Id: I1491980d5ba693e3a0d899a13aa9615d84468e7a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162860 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
committed by
Mike Kaganski
parent
070b4ddda4
commit
5986ab58db
@@ -2737,9 +2737,6 @@ bool ScaAnyConverter::getDouble(
|
||||
case uno::TypeClass_VOID:
|
||||
bContainsVal = false;
|
||||
break;
|
||||
case uno::TypeClass_DOUBLE:
|
||||
rAny >>= rfResult;
|
||||
break;
|
||||
case uno::TypeClass_STRING:
|
||||
{
|
||||
auto pString = o3tl::forceAccess< OUString >( rAny );
|
||||
@@ -2749,9 +2746,14 @@ bool ScaAnyConverter::getDouble(
|
||||
bContainsVal = false;
|
||||
}
|
||||
break;
|
||||
case uno::TypeClass_HYPER:
|
||||
rfResult = rAny.get<sal_uInt64>();
|
||||
break;
|
||||
default:
|
||||
throw lang::IllegalArgumentException();
|
||||
if( !( rAny >>= rfResult ) )
|
||||
throw lang::IllegalArgumentException();
|
||||
}
|
||||
|
||||
return bContainsVal;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user