diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-18 12:45:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-19 12:11:38 +0100 |
commit | c797c2bac2dab105856c65a3de4a0dcea629e6f5 (patch) | |
tree | b533c2f9bc579412c8bbfb3cb02dfc0eb72a0803 /sfx2 | |
parent | c0d223f7036263d3e7012d497ea71d4722052927 (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/Deck.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 |