https://bugs.documentfoundation.org/show_bug.cgi?id=119259

--- Comment #8 from Caolán McNamara <caol...@redhat.com> ---
I think...

in drawdoc3.cxx ::InsertBookmarkAsPage, when the page is pasted,
RenameAndCopyGraphicSheets is called, which calls stlpool.cxx
SdStyleSheetPool::CopySheets where an existing stylesheet is found via the "If
we have already have a sheet with the new name and it is equal to the one in
the source pool, do nothing" and added it to rCreatedSheets.

Later in SdMoveStyleSheetsUndoAction::Undo the style is unconditionally removed
from the pool, even though the original version of the graphic still relies on
it.

Possibly removing such "already there" stylesheets from rCreatedSheets is the
right approach.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to