include/sfx2/templdlg.hxx | 1 - sfx2/source/dialog/templdlg.cxx | 19 ------------------- 2 files changed, 20 deletions(-)
New commits: commit 962a18691d9aa99555d6f332cc577c1fc256d48b Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Apr 26 21:20:54 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Apr 27 09:41:56 2020 +0200 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 <caol...@redhat.com> diff --git a/include/sfx2/templdlg.hxx b/include/sfx2/templdlg.hxx index 8708b32c2e65..3c0f4e2e99d3 100644 --- a/include/sfx2/templdlg.hxx +++ b/include/sfx2/templdlg.hxx @@ -36,7 +36,6 @@ public: virtual void dispose() override; virtual void Resize() override; - virtual void StateChanged( StateChangedType nStateChange ) override; private: std::unique_ptr<SfxTemplateDialog_Impl> pImpl; 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits