Change-Id: Ic0d026ceeedc4118a04f22a9d82a0c85321d131a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88338
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini 2020-02-09 16:06:30 +01:00 committed by Julien Nabet
parent ba9f0b4fa5
commit e9cc1df70a

View file

@ -113,7 +113,7 @@ void SdPage::onParagraphInserted( ::Outliner* pOutliner, Paragraph const * pPara
ParagraphTarget aTarget;
aTarget.Shape.set( pObj->getUnoShape(), UNO_QUERY );
/* FIXME: Paragraph should be sal_Int32, though more than 64k
* paragrapsh at a shape are unlikely... */
* paragraphs at a shape are unlikely... */
aTarget.Paragraph = static_cast<sal_Int16>(pOutliner->GetAbsPos( pPara ));
getMainSequence()->insertTextRange( makeAny( aTarget ) );
@ -128,7 +128,7 @@ void SdPage::onParagraphRemoving( ::Outliner* pOutliner, Paragraph const * pPara
ParagraphTarget aTarget;
aTarget.Shape.set( pObj->getUnoShape(), UNO_QUERY );
/* FIXME: Paragraph should be sal_Int32, though more than 64k
* paragrapsh at a shape are unlikely... */
* paragraphs at a shape are unlikely... */
aTarget.Paragraph = static_cast<sal_Int16>(pOutliner->GetAbsPos( pPara ));
getMainSequence()->disposeTextRange( makeAny( aTarget ) );