sw/source/filter/md/swmd.cxx | 4 ++-- sw/source/filter/md/swmd.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit 2d054c92e11cc9f66a867c77b36a92a1b75c6d51 Author: Andrea Gelmini <andrea.gelm...@gelma.net> AuthorDate: Mon Jul 7 11:00:36 2025 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Mon Jul 7 21:15:28 2025 +0200 Fix typo in code Change-Id: I70e6b4257a18e51a94972159754526fb1292bca4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187468 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/sw/source/filter/md/swmd.cxx b/sw/source/filter/md/swmd.cxx index d7be5d787ce4..3e010c3432ff 100644 --- a/sw/source/filter/md/swmd.cxx +++ b/sw/source/filter/md/swmd.cxx @@ -621,10 +621,10 @@ void SwMarkdownParser::InsertImage(const OUString& aURL, const OUString& rTitle) if (nWidth > 0 && nHeight > 0) { - if (nWidth > MD_MAX_IMAGE_WIDTH_IN_TWIPS || nHeight > MD_MAX_IMAGE_HEIGH_IN_TWIPS) + if (nWidth > MD_MAX_IMAGE_WIDTH_IN_TWIPS || nHeight > MD_MAX_IMAGE_HEIGHT_IN_TWIPS) { double fScaleX = static_cast<double>(MD_MAX_IMAGE_WIDTH_IN_TWIPS) / nWidth; - double fScaleY = static_cast<double>(MD_MAX_IMAGE_HEIGH_IN_TWIPS) / nHeight; + double fScaleY = static_cast<double>(MD_MAX_IMAGE_HEIGHT_IN_TWIPS) / nHeight; double fScale = std::min(fScaleX, fScaleY); nWidth = static_cast<tools::Long>(nWidth * fScale); diff --git a/sw/source/filter/md/swmd.hxx b/sw/source/filter/md/swmd.hxx index 795b6d0d902d..12982876c5d3 100644 --- a/sw/source/filter/md/swmd.hxx +++ b/sw/source/filter/md/swmd.hxx @@ -35,7 +35,7 @@ class MDTable; constexpr tools::Long MD_PARSPACE = o3tl::toTwips(5, o3tl::Length::mm); constexpr tools::Long MD_MAX_IMAGE_WIDTH_IN_TWIPS = 2500; -constexpr tools::Long MD_MAX_IMAGE_HEIGH_IN_TWIPS = 2500; +constexpr tools::Long MD_MAX_IMAGE_HEIGHT_IN_TWIPS = 2500; constexpr frozen::unordered_map<MD_ALIGN, SvxAdjust, 4> adjustMap = { { MD_ALIGN_DEFAULT, SvxAdjust::Left },