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

fdo#42073: sw: expand all text fields when setting properties:

SwXTextField::setPropertyValue: call Expand() for all text fields
Fixes getPresentation returning stale values.
(regression from CWS sw34bf01, 8485708f)
Also, without this the text formatting does not actually update and the new
content is not displayed until some other unrelated editing operation.
üst 9519deda
...@@ -1912,9 +1912,8 @@ void SwXTextField::setPropertyValue(const OUString& rPropertyName, const uno::An ...@@ -1912,9 +1912,8 @@ void SwXTextField::setPropertyValue(const OUString& rPropertyName, const uno::An
const_cast<SwFmtFld*>(pFmtFld)->Broadcast(SwFmtFldHint( 0, SWFMTFLD_CHANGED )); const_cast<SwFmtFld*>(pFmtFld)->Broadcast(SwFmtFldHint( 0, SWFMTFLD_CHANGED ));
} }
// changes of the expanded string have to be notified // fdo#42073 notify SwTxtFld about changes of the expanded string
//#to the SwTxtFld if (pFmtFld->GetTxtFld())
if(RES_DBFLD == nWhich && pFmtFld->GetTxtFld())
{ {
pFmtFld->GetTxtFld()->Expand(); pFmtFld->GetTxtFld()->Expand();
} }
......
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