From 4fb482ebf27d8f3b620d33555705e487b4780f6d Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Mon, 24 Aug 2026 23:12:17 +0200 Subject: [PATCH] Fix typo Change-Id: Icb9297bced08c845aaf9fce1b69bbe9dfcc8d6ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209948 Tested-by: Julien Nabet Reviewed-by: Julien Nabet --- vcl/qt5/QtMenu.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcl/qt5/QtMenu.cxx b/vcl/qt5/QtMenu.cxx index e8c116a8cd0a..ca8dd136d3a7 100644 --- a/vcl/qt5/QtMenu.cxx +++ b/vcl/qt5/QtMenu.cxx @@ -47,7 +47,7 @@ static inline void lcl_force_menubar_layout_update(QMenuBar& rMenuBar) { // just exists as a function to not comment it everywhere: forces reposition of the // corner widget after its layout changes, which will otherwise just happen on resize. - // it unfortunatly has additional side effects; see QtMenu::GetMenuBarButtonRectPixel. + // it unfortunately has additional side effects; see QtMenu::GetMenuBarButtonRectPixel. rMenuBar.adjustSize(); } @@ -944,7 +944,7 @@ tools::Rectangle QtMenu::GetMenuBarButtonRectPixel(sal_uInt16 nId, SalFrame* pFr auto* pButton = static_cast(m_pButtonGroup->button(nId)); assert(pButton); - // unfortunatly, calling lcl_force_menubar_layout_update results in a temporary wrong menubar size, + // unfortunately, calling lcl_force_menubar_layout_update results in a temporary wrong menubar size, // but it's the correct minimal size AFAIK and the layout seems correct, so just adjust the width. QPoint aPos = pButton->mapTo(mpFrame->asChild(), QPoint()); aPos.rx() += (mpFrame->asChild()->width() - mpQMenuBar->width());