the txtparae.cxx code that does the export does:
// xlink:href OUString sOrigURL; rPropSet->getPropertyValue( sGraphicURL ) >>= sOrigURL;
This calls into /data/opt/libreoffice/master/sw/source/core/unocore/unoframe.cxx:1402ish that in a nutshell returns: pGrfNode->GetGrfObj().GetUniqueID() Which is: (gdb) p sOrigURL $9 = "vnd.sun.star.GraphicObject:200004AD0000475F000033B367F3281F"
OUString sURL(GetExport().AddEmbeddedGraphicObject( sOrigURL ));
This saves the embedded object into the output stream giving it a new name:
(gdb) p sURL $11 = "Pictures/200004AD0000475F000033B367F3281F.svm"
setTextEmbeddedGraphicURL( rPropSet, sURL );
And this then calls the 'SetNewName' on the graphic:
String aNewURL( RTL_CONSTASCII_USTRINGPARAM("vnd.sun.star.Package:") ); aNewURL += String(rURL); pGrfNd->SetNewStreamName( aNewURL );
Which then causes the grief.
the txtparae.cxx code that does the export does:
// xlink:href >getPropertyVal ue( sGraphicURL ) >>= sOrigURL;
OUString sOrigURL;
rPropSet-
This calls into /data/opt/ libreoffice/ master/ sw/source/ core/unocore/ unoframe. cxx:1402ish that in a nutshell returns:
pGrfNode- >GetGrfObj( ).GetUniqueID( ) star.GraphicObj ect:200004AD000 0475F000033B367 F3281F"
Which is:
(gdb) p sOrigURL
$9 = "vnd.sun.
OUString sURL(GetExport( ).AddEmbeddedGr aphicObject( sOrigURL ));
This saves the embedded object into the output stream giving it a new name:
(gdb) p sURL 200004AD0000475 F000033B367F328 1F.svm"
$11 = "Pictures/
setTextEmbe ddedGraphicURL( rPropSet, sURL );
And this then calls the 'SetNewName' on the graphic:
String aNewURL( RTL_CONSTASCII_ USTRINGPARAM( "vnd.sun. star.Package: ") );
pGrfNd- >SetNewStreamNa me( aNewURL );
aNewURL += String(rURL);
Which then causes the grief.