sc/source/filter/dif/difimp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5b6b1f230529070259d81193a78d38b00fb8aec3 Author: Eike Rathke <er...@redhat.com> AuthorDate: Thu Aug 25 12:53:51 2022 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Aug 25 23:03:20 2022 +0200 Resolves: tdf#150599 Move obtaining data into loop again Regression from commit a23a7eea5cfcdc50d09be248828cb1e6293e5ebb CommitDate: Sun Dec 26 20:36:26 2021 +0100 Avoid OUStringBuffer::toString where possible that erroneously also moved obtaining the data string outside the loop, whyever.. Change-Id: I329108d42db43c1ab22ba82650d801e595dd7ece Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138805 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Jenkins (cherry picked from commit b5629341edecf10c18087811c77708b01dd15a15) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138815 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sc/source/filter/dif/difimp.cxx b/sc/source/filter/dif/difimp.cxx index f6e1fd0b0a36..fd88cdf4cfd4 100644 --- a/sc/source/filter/dif/difimp.cxx +++ b/sc/source/filter/dif/difimp.cxx @@ -122,7 +122,6 @@ ErrCode ScFormatFilterPluginImpl::ScImportDif(SvStream& rIn, ScDocument* pDoc, c ScSetStringParam aStrParam; // used to set string value without number detection. aStrParam.setTextInput(); - const OUString aData = rData.makeStringAndClear(); while( eCurrent != D_EOD ) { @@ -130,6 +129,7 @@ ErrCode ScFormatFilterPluginImpl::ScImportDif(SvStream& rIn, ScDocument* pDoc, c aPrgrsBar.Progress(); ScAddress aPos(nColCnt, nRowCnt, nBaseTab); + const OUString aData = rData.makeStringAndClear(); switch( eCurrent ) {