summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2019-08-23 16:10:20 +0200
committerLászló Németh <nemeth@numbertext.org>2019-08-26 15:23:20 +0200
commit419b70b5d4db227509614bdea5b4b89bcf7a6032 (patch)
tree58877a845ee4d26fe814007dddb93fe0db5ed64c /writerfilter
parent254fd20dd5cb8206c7eac19f11dec0369c12d366 (diff)
tdf#105485 DOCX: import deleted comments as deleted
in tracked deletions, instead of importing them as normal comments of the actual text content, ie. showing them in the Hide Changes mode, too, without crossing out. Change-Id: I7f84d2e9f2dd280bbca2236b40bab83b94d40c68 Reviewed-on: https://gerrit.libreoffice.org/78018 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapper_Impl.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index c78753545bfc..421e3af8bdc7 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -2284,7 +2284,9 @@ void DomainMapper_Impl::PopAnnotation()
if (m_nAnnotationId == -1 || !m_aAnnotationPositions[m_nAnnotationId].m_xStart.is() || !m_aAnnotationPositions[m_nAnnotationId].m_xEnd.is())
{
uno::Sequence< beans::PropertyValue > aEmptyProperties;
- appendTextContent( uno::Reference< text::XTextContent >( m_xAnnotationField, uno::UNO_QUERY_THROW ), aEmptyProperties );
+ uno::Reference< text::XTextContent > xContent( m_xAnnotationField, uno::UNO_QUERY_THROW );
+ appendTextContent( xContent, aEmptyProperties );
+ CheckRedline( xContent->getAnchor( ) );
}
else
{