sfx2/source/sidebar/Deck.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit c797c2bac2dab105856c65a3de4a0dcea629e6f5 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Mar 18 12:45:36 2021 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Mar 19 12:11:38 2021 +0100 replace GetParent() with mxParentWindow which should be the same thing without relying on querying the hierarchy Change-Id: Ie8b59e3dec1b1b9786bcc1891a358aa2c763dde0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112695 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index 4b0eb6580d70..4ea279689e8e 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -214,7 +214,7 @@ void Deck::RequestLayout() return; bool bChangeNeeded = false; - Size aParentSize = GetParent()->GetSizePixel(); + Size aParentSize = mxParentWindow->GetSizePixel(); if (mnMinimalHeight > 0 && (mnMinimalHeight != aParentSize.Height() || GetSizePixel().Height() != mnMinimalHeight)) { @@ -231,7 +231,7 @@ void Deck::RequestLayout() if (bChangeNeeded) { - GetParent()->SetSizePixel(aParentSize); + mxParentWindow->SetSizePixel(aParentSize); setPosSizePixel(0, 0, aParentSize.Width(), aParentSize.Height()); } else if (aParentSize != GetSizePixel()) //Sync parent & child sizes _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits