sw/source/core/draw/dcontact.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 880096c3a970389de9f1272509d2d03df046570a Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Mon Sep 9 19:23:18 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Tue Sep 10 08:04:08 2024 +0200 no need to use dynamic_cast in SwDrawContact::GetTextObjectsFromFormat Change-Id: Ia970b120d338fc2924d5f2a86a7e85b276a01776 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173107 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/sw/source/core/draw/dcontact.cxx b/sw/source/core/draw/dcontact.cxx index 9873143463e5..73393ea67e50 100644 --- a/sw/source/core/draw/dcontact.cxx +++ b/sw/source/core/draw/dcontact.cxx @@ -748,7 +748,7 @@ void SwDrawContact::GetTextObjectsFromFormat(std::list<SdrTextObj*>& o_rTextObje { for(sw::SpzFrameFormat* pFly: *rDoc.GetSpzFrameFormats()) { - if(dynamic_cast<const SwDrawFrameFormat*>(pFly)) + if(pFly->Which() == RES_DRAWFRMFMT) // ie. SwDrawFrameFormat* pFly->CallSwClientNotify(sw::CollectTextObjectsHint(o_rTextObjects)); } }