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());