summaryrefslogtreecommitdiff
path: root/cli_ure
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-08-22 10:08:42 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-09-03 16:34:02 +0200
commitb6b6d5c22e52c83af60eba077f0c5098f2198782 (patch)
tree3bf1ed1651ee1eadd8b872f72064cedf8d24c5da /cli_ure
parent2fb37f232849db1f0ae852203fef4d4a40145755 (diff)
Resolves: tdf#119259 reused in-use SdStyleSheet removed by undo
since... commit a4cd841541a729d7b8126d27d91fa28e30b01403 Date: Thu Feb 13 16:10:47 2014 +0530 n#757432: Styles (rename &) copy to different decks. While copying slides to different slide decks, styles were not being copied if there is already one with the same name. This patch renames and copies those to keep the formatting intact. if a SdStyleSheet is not freshly created, but reused, it ends up in the rCreatedSheets list, and so when the copy is undone (via SdMoveStyleSheetsUndoAction), the SdStyleSheet is unconditionally remove from the StylePool and so its ref count hits 0 and is removed, even though there are still objects depending on it. the problem becames more common since... bash-4.4$ git show 57db6e24b5ad43d447c30e44a112c74c7e75b46b commit 57db6e24b5ad43d447c30e44a112c74c7e75b46b Date: Tue Aug 15 02:51:07 2017 +0530 Removing old SfxItemSet::getHash usage improves the SfxItemSet comparison. Assuming that its correct to leave SdStyleSheetPool::CopySheets with those reused SdStyleSheets in the list, change things so that a flag is passed around to indicate if the SdStyleSheet should be removed or not by undo Change-Id: I82b5bd93183fd1ff9e67957ccfb5babef81fd36d Reviewed-on: https://gerrit.libreoffice.org/59434 Tested-by: Jenkins Tested-by: Xisco Faulí <xiscofauli@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'cli_ure')
0 files changed, 0 insertions, 0 deletions