diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-05-26 15:52:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-05-30 17:56:45 +0200 |
commit | 9104861a41e0edd07e4d74da47acb4e9d92b1ddd (patch) | |
tree | be5de6fc3cf8996fb4d2162b07f76f4c19f40922 /sw/source/uibase/uitest | |
parent | 99eab75edd636fbb3e01e9a59e84b7729d999738 (diff) |
tdf#147708 create floating menubutton on demand
and destroy when it is fully faded out. Otherwise windows runs out of
gdi handles with document with large number of page breaks
todo: rename some things in a follow up commit after this more easily
backportable commit is merged
Change-Id: Ibbe3cd00d1027ac34915c4bff73e3a330e300f38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135027
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/uitest')
-rw-r--r-- | sw/source/uibase/uitest/uiobject.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uitest/uiobject.cxx b/sw/source/uibase/uitest/uiobject.cxx index 52b27ab3955e..2e539c0a1308 100644 --- a/sw/source/uibase/uitest/uiobject.cxx +++ b/sw/source/uibase/uitest/uiobject.cxx @@ -219,7 +219,7 @@ OUString CommentUIObject::get_name() const return "CommentUIObject"; } -PageBreakUIObject::PageBreakUIObject(const VclPtr<SwPageBreakWin>& xPageBreakUIObject): +PageBreakUIObject::PageBreakUIObject(const VclPtr<SwBreakDashedLine>& xPageBreakUIObject): WindowUIObject(xPageBreakUIObject), mxPageBreakUIObject(xPageBreakUIObject) { @@ -236,7 +236,7 @@ void PageBreakUIObject::execute(const OUString& rAction, std::unique_ptr<UIObject> PageBreakUIObject::create(vcl::Window* pWindow) { - SwPageBreakWin* pPageBreakWin = dynamic_cast<SwPageBreakWin*>(pWindow); + SwBreakDashedLine* pPageBreakWin = dynamic_cast<SwBreakDashedLine*>(pWindow); assert(pPageBreakWin); return std::unique_ptr<UIObject>(new PageBreakUIObject(pPageBreakWin)); } |