Apache OpenOffice (AOO) Bugzilla – Issue 68838
loosing ScPostIts ...
Last modified: 2017-05-20 11:31:28 UTC
Load the attached, select A1->A3, copy, create new document -> Paste, Save As-> 'foo.ods', close -> re-open: Notice the postits are now lost; it works fine if you move them around the same document; and they are rendered nicely before you save ;-) Chasing the issue - I expect to solve it as part of my (pending) ScPostIt re-work.
Created attachment 38682 [details] test file
ScXMLExport::WriteAnnotation is called, but rMyCell.xNoteShape == null. this is because: ScXMLExport::CollectShapesAutoStyles 'HasDrawPage' == false this is because ScXMLExport::CollectSharedData 'HasDrawPages' == false which in turn comes down to: xDocProps->getPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(SC_UNO_HASDRAWPAGES)))
If you export to .xls it's fine. The code should IMHO force the creation of the drawing layer by using the XSheetAnnotationShapeSupplier - which is great if we call eg. ::getPosition on the ScAnnotationShape:: object - it will remove the need to cut/paste that great block of code. Then again the code in ScXMLExport::CollectShapesAutoStyle is littered with unused code & this block of cut/paste - looks rather sub-optimal; still thinking.
Reset assigne to the default "issues@openoffice.apache.org".