From 25d0ae95d6e7695a33cb67b1cb3626c338cf92a9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 14 Apr 2023 13:32:53 +0200 Subject: fix check in SvxUnoTextBase::insertTextContent looks like copy/paste error in commit aac15b638410f181133dc15343136b4e9a1675ba Author: Kohei Yoshida 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 --- editeng/source/uno/unotext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editeng') 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 xPropSetContent(xContent, uno::UNO_QUERY); - if (!xContent.is()) + if (!xPropSetContent.is()) throw lang::IllegalArgumentException(); xPropSetContent->setPropertyValue(UNO_TC_PROP_ANCHOR, uno::Any(xRange)); -- cgit