diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-04-26 21:20:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-04-27 09:41:56 +0200 |
commit | 962a18691d9aa99555d6f332cc577c1fc256d48b (patch) | |
tree | ce06a1660bda3a43cf8a27d9d35613a5286d550d /sfx2 | |
parent | 27306e0eeee8a22e554f6f5bebccca4f778ae731 (diff) |
aPoint is never consumed so calculations to derive it are moot
Change-Id: I4b00fc1e3bb0f346e688d50d1ea4d1ad4dd56915
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92951
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 8ec385bff416..d793608eee53 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -414,25 +414,6 @@ void SfxTemplatePanelControl::Resize() Window::Resize(); } -void SfxTemplatePanelControl::StateChanged( StateChangedType nStateChange ) -{ - if (nStateChange == StateChangedType::InitShow) - { - SfxViewFrame* pFrame = mpBindings->GetDispatcher_Impl()->GetFrame(); - vcl::Window* pEditWin = pFrame->GetViewShell()->GetWindow(); - - Size aSize = pEditWin->GetSizePixel(); - Point aPoint = pEditWin->OutputToScreenPixel( pEditWin->GetPosPixel() ); - aPoint = GetParent()->ScreenToOutputPixel( aPoint ); - Size aWinSize = GetSizePixel(); - aPoint.AdjustX(aSize.Width() - aWinSize.Width() - 20 ); - aPoint.AdjustY(aSize.Height() / 2 - aWinSize.Height() / 2 ); - // SetFloatingPos( aPoint ); - } - - Window::StateChanged( nStateChange ); -} - void StyleTreeListBox_Impl::MakeExpanded_Impl(std::vector<OUString>& rEntries) const { SvTreeListEntry* pEntry; |