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 <erack@redhat.com>
Tested-by: Jenkins
diff --git a/sc/source/filter/dif/difimp.cxx b/sc/source/filter/dif/difimp.cxx
index f6e1fd0..fd88cdf 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 )
{