diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-14 09:38:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-02-14 14:31:50 +0100 |
commit | 8389dc88a48b366ad7f3dd84129467175e18ab40 (patch) | |
tree | 2de192eab43601ee8b145215504ed6aa2b9db243 /sc/source/core/data | |
parent | f67e5ef9a5c71f3b35b1c67eb72794e44cc15410 (diff) |
split out MetricField value conversion functions
Change-Id: I67a33bd2a5cb06dc66e471918b5c378044a2eff2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88679
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/core/data')
-rw-r--r-- | sc/source/core/data/drwlayer.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index 395bb62149d4..e9deb74010bc 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -67,7 +67,7 @@ #include <table.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> -#include <vcl/field.hxx> +#include <vcl/fieldvalues.hxx> #include <memory> namespace com::sun::star::embed { class XEmbeddedObject; } @@ -200,13 +200,13 @@ ScTabSizeChangedHint::~ScTabSizeChangedHint() static long TwipsToHmm (long nVal) { - return static_cast< long >( MetricField::ConvertDoubleValue (static_cast<sal_Int64>(nVal), 0, 0, + return static_cast< long >( vcl::ConvertDoubleValue (static_cast<sal_Int64>(nVal), 0, 0, FieldUnit::TWIP, FieldUnit::MM_100TH) ); } static long HmmToTwips (long nVal) { - return static_cast< long > ( MetricField::ConvertDoubleValue (static_cast<sal_Int64>(nVal), 0, 0, + return static_cast< long > ( vcl::ConvertDoubleValue (static_cast<sal_Int64>(nVal), 0, 0, FieldUnit::MM_100TH, FieldUnit::TWIP) ); } |