Replace the whole content for copied documents

Desktop / LibreOffice - Jan-Marek Glogowski [fbihome.de] - 9 September 2014 10:22 UTC

If the document is initialized in CreateCopy, it already contains the initial empty paragraph. So we have to delete the content from initial document, as we're going to replace the whole content with the pasted document.

Change-Id: Ie6a64dcb070f7d611dfde97f2c1a721834b4167b Reviewed-on: https://gerrit.libreoffice.org/10963

ddffb79 Replace the whole content for copied documents
sw/inc/IDocumentContentOperations.hxx | 32 +++++++++++++++++++++++++++++---
sw/source/core/doc/docnew.cxx | 20 ++++++++++++++------
2 files changed, 43 insertions(+), 9 deletions(-)

Upstream: cgit.freedesktop.org


  • Share