@@ -387,6 +398,9 @@ sal_Bool SwGrfNode::ImportGraphic( SvStream& rStrm ) const String aGraphicURL( aGrfObj.GetUserData() ); if( !GraphicFilter::GetGraphicFilter().ImportGraphic( aGraphic, aGraphicURL, rStrm ) ) { + fprintf (stderr, "Very curious set User Data of '%s' vs 0x%lx\n", + rtl::OUStringToOString(aGraphicURL, RTL_TEXTENCODING_UTF8).getStr(), + aGraphic.GetChecksum()); aGrfObj.SetGraphic( aGraphic ); aGrfObj.SetUserData( aGraphicURL ); return sal_True;
Shows:
Very curious set User Data of 'vnd.sun.star.Package:Pictures/200004AD0000475F000033B381B9C98F.svm' vs 0x67f3281f
which we would expect I guess, the URL name is set to the user data of the graphic there.
@@ -387,6 +398,9 @@ sal_Bool SwGrfNode: :ImportGraphic( SvStream& rStrm ) GetUserData( ) ); :GetGraphicFilt er().ImportGrap hic( aGraphic, aGraphicURL, rStrm ) ) OString( aGraphicURL, RTL_TEXTENCODIN G_UTF8) .getStr( ), GetChecksum( ));
aGrfObj. SetGraphic( aGraphic );
aGrfObj. SetUserData( aGraphicURL );
const String aGraphicURL( aGrfObj.
if( !GraphicFilter:
{
+ fprintf (stderr, "Very curious set User Data of '%s' vs 0x%lx\n",
+ rtl::OUStringTo
+ aGraphic.
return sal_True;
Shows:
Very curious set User Data of 'vnd.sun. star.Package: Pictures/ 200004AD0000475 F000033B381B9C9 8F.svm' vs 0x67f3281f
which we would expect I guess, the URL name is set to the user data of the graphic there.