sc/source/filter/xcl97/XclExpChangeTrack.cxx |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit 0db60837932a5f2f09dc88eb977c1bbf31b911e8
Author: Kohei Yoshida <kohei.yosh...@collabora.com>
Date:   Thu Jul 17 15:52:52 2014 -0400

    fdo#81470: Fix a crasher during xlsx export with revisions.
    
    Calling Undo() here removes revision entries which also removes formula
    cell instances stored in the entries.  The problem is that the
    XclExpChTrCellContent instances store pointers to these formula instances
    for later use, and removing the entries at this location causes deleted
    formula instances to get accessed which in turn causes segfault.
    
    Since all revision entries get deleted when the temp change track instance
    gets deleted at the end of the revision export, not deleting the entries
    here will not cause memory leaks.
    
    Change-Id: I85f8064945a841b684e4fc4a97c3f9bb6a2de353
    (cherry picked from commit 3bce16799c34d0b28704c43eae77501c0f6aec1e)
    Reviewed-on: https://gerrit.libreoffice.org/10370
    Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrh...@googlemail.com>

diff --git a/sc/source/filter/xcl97/XclExpChangeTrack.cxx 
b/sc/source/filter/xcl97/XclExpChangeTrack.cxx
index cf43455..4546a1d 100644
--- a/sc/source/filter/xcl97/XclExpChangeTrack.cxx
+++ b/sc/source/filter/xcl97/XclExpChangeTrack.cxx
@@ -1408,7 +1408,6 @@ XclExpChangeTrack::XclExpChangeTrack( const XclExpRoot& 
rRoot ) :
     {
         PushActionRecord( *pScAction );
         const ScChangeAction* pPrevAction = pScAction->GetPrev();
-        pTempChangeTrack->Undo( pScAction->GetActionNumber(), 
pScAction->GetActionNumber() );
         pScAction = pPrevAction;
     }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to