Comment 8 for bug 254857

Revision history for this message
codedread (codedread) wrote :

sas,

The syncMetadataTitleToDocTitle() in my patch (called during a Save) does the following:

- gets the document metadata title
- applies it to the document element (overwriting any existing title)

The problem with first checking title() is this: let's say the user saves their document with a metadata title one time. In this case, the document gets a new svg:title element. Then they realize they made a mistake and correct it under File > Document Metadata. If we implement what you're suggesting, the <title> element will stay frozen and diverge from the <metadata>'s dc:title element. Thus, I think the only right way to do this is to state that (for now) metadata's dc:title always overwrites the document's svg:title.

I do like the idea of moving this into the SPDocument class (removes the need for a makefile update and another object file). I'll do that in my subsequent patch.