editeng/source/uno/unotext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 25d0ae95d6e7695a33cb67b1cb3626c338cf92a9 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Apr 14 13:32:53 2023 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Apr 14 17:28:32 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> diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index 2bbae05a56b2..54fd7126dbd4 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -1886,7 +1886,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));