From 4cdca3702cda246ecc490c65973e525ff5cf25ab Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Thu, 11 Nov 2021 10:27:23 +0300 Subject: Use o3tl::convert Change-Id: I62239252efed514de7db88b4bea6f4d4d719fb17 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125021 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- svgio/inc/SvgNumber.hxx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'svgio/inc/SvgNumber.hxx') diff --git a/svgio/inc/SvgNumber.hxx b/svgio/inc/SvgNumber.hxx index 9b6907a02031..4d03335cf424 100644 --- a/svgio/inc/SvgNumber.hxx +++ b/svgio/inc/SvgNumber.hxx @@ -25,9 +25,6 @@ namespace svgio::svgreader { -// recommended value for this device dependent unit, see CSS2 section 4.3.2 Lengths -constexpr const double F_SVG_PIXEL_PER_INCH = 96.0; - enum class NumberType { xcoordinate, @@ -52,11 +49,11 @@ enum class SvgUnit ex, // relative to current x-height px, // 'user unit' - pt, // points, 1.25 px - pc, // 15.0 px - cm, // 35.43307 px - mm, // 3.543307 px - in, // 90 px + pt, // points, 1/72 in + pc, // 1/6 in + cm, + mm, + in, percent, // relative to range none // for stroke-miterlimit, which has no unit -- cgit