diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-01 10:09:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-01 13:00:20 +0200 |
commit | fe8dfdf6dad15f39f68859b935e7337f1d1fa0eb (patch) | |
tree | 817e2b0de27a8091ba9080c74d8dcf130eea158a /sw/source/uibase/docvw | |
parent | 5dd22c7fe8aeaaee76cb8124113adda6c43dfd39 (diff) |
use more SwPosition::Assign
part of hiding the internals of SwPosition
Change-Id: Ia832fec32146c0d323a9a6ee1d8645f713e0371f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139146
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/docvw')
-rw-r--r-- | sw/source/uibase/docvw/UnfloatTableButton.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/docvw/UnfloatTableButton.cxx b/sw/source/uibase/docvw/UnfloatTableButton.cxx index 49bf9c660771..2f0f596cc3c0 100644 --- a/sw/source/uibase/docvw/UnfloatTableButton.cxx +++ b/sw/source/uibase/docvw/UnfloatTableButton.cxx @@ -173,7 +173,8 @@ void UnfloatTableButton::MouseButtonDown(const MouseEvent& /*rMEvt*/) // Move the table outside of the text frame SwNodeRange aRange(*pTableNode, SwNodeOffset(0), *pTableNode->EndOfSectionNode(), SwNodeOffset(1)); - rDoc.getIDocumentContentOperations().MoveNodeRange(aRange, aInsertPos, SwMoveFlags::DEFAULT); + rDoc.getIDocumentContentOperations().MoveNodeRange(aRange, aInsertPos.GetNode(), + SwMoveFlags::DEFAULT); // Remove the floating table's frame SwFlyFrameFormat* pFrameFormat = pFlyFrame->GetFormat(); |