Fix typo
Change-Id: Icb9297bced08c845aaf9fce1b69bbe9dfcc8d6ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209948 Tested-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
committed by
Julien Nabet
parent
93e4167640
commit
4fb482ebf2
+2
-2
@@ -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<QPushButton*>(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());
|
||||
|
||||
Reference in New Issue
Block a user