diff options
Diffstat (limited to 'sw/source/core/undo/SwUndoField.cxx')
-rw-r--r-- | sw/source/core/undo/SwUndoField.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/undo/SwUndoField.cxx b/sw/source/core/undo/SwUndoField.cxx index 3ab16ebe4ff3..353070852588 100644 --- a/sw/source/core/undo/SwUndoField.cxx +++ b/sw/source/core/undo/SwUndoField.cxx @@ -33,11 +33,11 @@ using namespace ::com::sun::star::uno; SwUndoField::SwUndoField(const SwPosition & rPos ) - : SwUndo(SwUndoId::FIELD, rPos.GetDoc()) + : SwUndo(SwUndoId::FIELD, &rPos.GetDoc()) { m_nNodeIndex = rPos.nNode.GetIndex(); m_nOffset = rPos.nContent.GetIndex(); - m_pDoc = rPos.GetDoc(); + m_pDoc = &rPos.GetDoc(); } SwUndoField::~SwUndoField() |