Kaydet (Commit) 53abb4f1 authored tarafından Michael Stahl's avatar Michael Stahl

sw: remove utterly pointless assignment in SwXFlatParagraph::changeText()

It will be set to 0 at the end anyway.

Change-Id: If9a8a70057a03980c37951f9ce74e1ae27541bfb
üst d7f62705
......@@ -278,9 +278,7 @@ void SAL_CALL SwXFlatParagraph::changeText(::sal_Int32 nPos, ::sal_Int32 nLen, c
xPropSet->setPropertyValue( aAttributes[i].Name, aAttributes[i].Value );
}
mpTxtNode = pOldTxtNode; // setPropertyValue() modifies this. We restore the old state.
IDocumentContentOperations* pIDCO = mpTxtNode->getIDocumentContentOperations();
IDocumentContentOperations* pIDCO = pOldTxtNode->getIDocumentContentOperations();
pIDCO->ReplaceRange( aPaM, aNewText, false );
mpTxtNode = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment