editeng/source/uno/unotext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ee199f149a6d7a9222a01608e4fc557be62d7ad3 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Apr 14 13:32:53 2023 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Mon Apr 17 14:22:42 2023 +0200 fix check in SvxUnoTextBase::insertTextContent looks like copy/paste error in commit aac15b638410f181133dc15343136b4e9a1675ba Author: Kohei Yoshida <kohei.yosh...@gmail.com> Date: Mon May 7 15:22:54 2012 -0400 Set anchor to XTextContent using UNO API. Change-Id: I516cf6e5ff23c2409585b57da34862f0ab6bdb17 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150408 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> (cherry picked from commit 25d0ae95d6e7695a33cb67b1cb3626c338cf92a9) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150332 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index 8d6b2aa9ec53..87f6634ad07e 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -1863,7 +1863,7 @@ void SAL_CALL SvxUnoTextBase::insertTextContent( const uno::Reference< text::XTe GetEditSource()->UpdateData(); uno::Reference<beans::XPropertySet> xPropSetContent(xContent, uno::UNO_QUERY); - if (!xContent.is()) + if (!xPropSetContent.is()) throw lang::IllegalArgumentException(); xPropSetContent->setPropertyValue(UNO_TC_PROP_ANCHOR, uno::Any(xRange));