summaryrefslogtreecommitdiff
path: root/emfio
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-04-14 12:50:42 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-04-15 06:34:33 +0200
commit690526f95e3ee4fd25bb2c987e093543e4bc435b (patch)
tree06b6bb7b6c907fb1876eac1e60b7dac952b21f7b /emfio
parent1dc92b9e9951ef118d2d823d54f9a022c2e41a27 (diff)
Generalize basegfx::fround for templated return type
And use it when assigning to tools::Long Change-Id: I0814d7bac9cdd48191ba69c64e3b12a4973b3417 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166071 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'emfio')
-rw-r--r--emfio/source/reader/mtftools.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx
index 546a7595ced9..e6ac4893730b 100644
--- a/emfio/source/reader/mtftools.cxx
+++ b/emfio/source/reader/mtftools.cxx
@@ -588,7 +588,7 @@ namespace emfio
fX2 -= mrclFrame.Left();
fY2 -= mrclFrame.Top();
}
- return Point(basegfx::fround(fX2), basegfx::fround(fY2));
+ return Point(basegfx::fround<tools::Long>(fX2), basegfx::fround<tools::Long>(fY2));
}
else
return Point();
@@ -677,7 +677,7 @@ namespace emfio
break;
}
}
- return Size(basegfx::fround(fWidth), basegfx::fround(fHeight));
+ return Size(basegfx::fround<tools::Long>(fWidth), basegfx::fround<tools::Long>(fHeight));
}
else
return Size();
@@ -1672,7 +1672,7 @@ namespace emfio
const Size aSizeY(ImplMap(Size(0, nSumY)));
const basegfx::B2DVector aVectorY(aSizeY.Width(), aSizeY.Height());
// Reverse Y
- pDYArry[i] = basegfx::fround(aVectorY.getLength());
+ pDYArry[i] = basegfx::fround<tools::Long>(aVectorY.getLength());
pDYArry[i] *= (nSumY >= 0 ? -1 : 1);
}
}