summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-04-14 13:32:53 +0200
committerAndras Timar <andras.timar@collabora.com>2023-05-13 20:05:17 +0200
commit71aa654c971101d0ed6b076013b1685562c9ea57 (patch)
treea8b3f6094d506eac47818f5ba9ef7ffeb115ce6f /editeng
parent328612ee345b6844a816b7fc4400fc8a967b8e93 (diff)
fix check in SvxUnoTextBase::insertTextContent
looks like copy/paste error in commit aac15b638410f181133dc15343136b4e9a1675ba Author: Kohei Yoshida <kohei.yoshida@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.grandin@collabora.co.uk> (cherry picked from commit 25d0ae95d6e7695a33cb67b1cb3626c338cf92a9) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150332 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/uno/unotext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx
index 82a399f00e26..3bf758956350 100644
--- a/editeng/source/uno/unotext.cxx
+++ b/editeng/source/uno/unotext.cxx
@@ -1885,7 +1885,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));