diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-14 13:32:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-14 17:28:32 +0200 |
commit | 25d0ae95d6e7695a33cb67b1cb3626c338cf92a9 (patch) | |
tree | a7c5842a3b6f50bf24299839aa5d51eae8ec5b23 /editeng/source/uno | |
parent | d1c24db3f8329bd798d4f80a94f191e6b43678f6 (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>
Diffstat (limited to 'editeng/source/uno')
-rw-r--r-- | editeng/source/uno/unotext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |