diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2021-02-04 12:36:41 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-02-04 18:34:49 +0100 |
commit | c598e0accf24e149520a22a8c062249f147844c7 (patch) | |
tree | dcb9a4eca26228ab76886853dc00b0f1c08a3011 /sc/qa/uitest/calc_tests8 | |
parent | 97abf85bb152b8a665dff6fd8b65fffea5365dc8 (diff) |
sw: fix copying and deleting of table in section via API
This is a follow-up to 7ab349296dac79dad3fec09f60348efcbb9ea17e.
The first problem was that tables that contain protected cells refused
to be deleted, which caused an infinite loop in
SwXTextRange::DeleteAndInsert().
This also affected SwXTextTable::dispose(), and DDE tables.
Fix this by forcibly deleting even protected cells from UNO APIs;
protection is an UI feature.
The second problem was that pasting the table SwFEShell::Paste() would
set up aCpyPam so that it selects from the start node of the table to
the last text node in the table, excluding the table cell and table end
nodes, which caused:
DocumentContentOperationsManager.cxx:3548: An insufficient number of nodes were copied!
Fix this by setting up aCpyPam over the entire body section of the
clipboard document.
Change-Id: I8c6caee5e75260dff79f106efc11f9669feddc0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110411
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sc/qa/uitest/calc_tests8')
0 files changed, 0 insertions, 0 deletions