You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by al...@apache.org on 2014/10/07 15:40:29 UTC
svn commit: r1629890 -
/openoffice/trunk/main/filter/source/msfilter/msdffimp.cxx
Author: alg
Date: Tue Oct 7 13:40:29 2014
New Revision: 1629890
URL: http://svn.apache.org/r1629890
Log:
i125476 Reverted i125187 but kept comments for the case someone else is about to do the same fix
Modified:
openoffice/trunk/main/filter/source/msfilter/msdffimp.cxx
Modified: openoffice/trunk/main/filter/source/msfilter/msdffimp.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/filter/source/msfilter/msdffimp.cxx?rev=1629890&r1=1629889&r2=1629890&view=diff
==============================================================================
--- openoffice/trunk/main/filter/source/msfilter/msdffimp.cxx (original)
+++ openoffice/trunk/main/filter/source/msfilter/msdffimp.cxx Tue Oct 7 13:40:29 2014
@@ -6054,7 +6054,7 @@ void SvxMSDffManager::GetDrawingGroupCon
nLenFBSE = nLength;
// ist FBSE gross genug fuer unsere Daten
sal_Bool bOk = ( nSkipBLIPLen + 4 + nSkipBLIPPos + 4 <= nLenFBSE );
- bool bBLIPIsDirectlyEmbedded(false);
+ // #125476# bool bBLIPIsDirectlyEmbedded(false);
if(bOk)
{
@@ -6066,10 +6066,11 @@ void SvxMSDffManager::GetDrawingGroupCon
// stream, else 1. Use this as hint to be more reliable (see below)
rSt >> nBLIPPos;
- if(0 == nBLIPPos)
- {
- bBLIPIsDirectlyEmbedded = true;
- }
+ // #125476# Taking back this change - see issue. It probably was a wrong assumtion
+ // if(0 == nBLIPPos)
+ // {
+ // bBLIPIsDirectlyEmbedded = true;
+ // }
rSt >> nBLIPPos;
bOk = rSt.GetError() == 0;
@@ -6089,7 +6090,12 @@ void SvxMSDffManager::GetDrawingGroupCon
// This modification works with all ppt files I found which use directly embedded
// BLIPs and with the file which showed the error. More work may be needed when
// exceptions to this more strict schema may show up, though.
- if(0 == nBLIPPos && nBLIPLen < nLenFBSE && bBLIPIsDirectlyEmbedded)
+ //
+ // #125476# back to original - see task. Keeping the change in the code as hint
+ // if this comes up again for someone who tries to fix it. This would show that
+ // indeed the information that the blip is embedded needs to be extracted somwhere
+ // and would need to be re-evaluated.
+ if(0 == nBLIPPos && nBLIPLen < nLenFBSE ) // #125476# && bBLIPIsDirectlyEmbedded)
{
// get BLIP file position as directly following embedded
nBLIPPos = rSt.Tell() + 4;