https://issues.apache.org/ooo/show_bug.cgi?id=121863

Armin Le Grand <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #5 from Armin Le Grand <[email protected]> ---
ALG: Currently the MasterPages (and NotesMasterPages) get moved, no checks if
used in source document or not. At insertion in the new model, a SetModel() at
the SdrPage adapts the model. Using something like

        if (pSourceDoc != this)
        {
            SdPage* pNewNotesMaster = dynamic_cast< SdPage*
>(pNotesMaster->Clone(this));
            SdPage* pNewMaster = dynamic_cast< SdPage* >(pMaster->Clone(this));

            if(!pNewNotesMaster || !pNewMaster)
            {
                delete pNewNotesMaster;
                delete pNewMaster;
                OSL_ASSERT("SdDrawDocument::SetMasterPage() cloning of
MasterPage/NoteAmsterPage failed!" );
                return;
            }

            pNotesMaster = pNewNotesMaster;
            pMaster = pNewMaster;
        }

in line 1607 already adds a clone of the source pages, but assigning the
SlideLayout to a new slide in the SlideDesign dialog does not work. Save/Reload
works well, though, and the new MasterPage is shown in the SlideDesign dialog
properly, also editable in MasterPage view mode. Hmmm..

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to