emfio/source/reader/mtftools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit cd48c8431965df97e6d1b6b5a63d05587572a8af Author: Caolán McNamara <[email protected]> AuthorDate: Fri Jan 2 11:01:22 2026 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Jan 2 20:03:34 2026 +0100 ofz#472735025 Integer-overflow Change-Id: If7b76626d43435d4e079a11080b87c76f8b5db81 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196420 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx index 5888d5f9de9f..a8380cb374fc 100644 --- a/emfio/source/reader/mtftools.cxx +++ b/emfio/source/reader/mtftools.cxx @@ -276,7 +276,7 @@ namespace emfio aFont.SetFontSize( aFontSize ); pVDev->SetFont( aFont ); FontMetric aMetric( pVDev->GetFontMetric() ); - tools::Long nHeight = aMetric.GetAscent() + aMetric.GetDescent(); + tools::Long nHeight = static_cast<tools::Long>(aMetric.GetAscent()) + aMetric.GetDescent(); if (nHeight) { double fHeight = (static_cast<double>(aFontSize.Height()) * rFont.lfHeight ) / nHeight;
