[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jul 1 11:06:54 UTC 2021
sc/source/filter/excel/xipage.cxx | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
New commits:
commit 26e2bb5c09dc8a95ffd69c666de352a8bfd965cb
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jul 1 10:24:07 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jul 1 13:06:21 2021 +0200
ofz#30762 Timeout
Change-Id: Iffbf89de479d1038f21a45575957ea7212d6939c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118214
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/filter/excel/xipage.cxx b/sc/source/filter/excel/xipage.cxx
index 41db8abcfbd6..c06308ba78c6 100644
--- a/sc/source/filter/excel/xipage.cxx
+++ b/sc/source/filter/excel/xipage.cxx
@@ -125,10 +125,17 @@ void XclImpPageSettings::ReadHeaderFooter( XclImpStream& rStrm )
default: OSL_FAIL( "XclImpPageSettings::ReadHeaderFooter - unknown record" );
}
- if (maData.maHeader.getLength() > 10 && utl::ConfigManager::IsFuzzing())
- maData.maHeader = maData.maHeader.copy(0, 10);
- if (maData.maHeaderEven.getLength() > 10 && utl::ConfigManager::IsFuzzing())
- maData.maHeaderEven = maData.maHeaderEven.copy(0, 10);
+ if (utl::ConfigManager::IsFuzzing())
+ {
+ if (maData.maHeader.getLength() > 10)
+ maData.maHeader = maData.maHeader.copy(0, 10);
+ if (maData.maFooter.getLength() > 10)
+ maData.maFooter = maData.maFooter.copy(0, 10);
+ if (maData.maHeaderEven.getLength() > 10)
+ maData.maHeaderEven = maData.maHeaderEven.copy(0, 10);
+ if (maData.maFooterEven.getLength() > 10)
+ maData.maFooterEven = maData.maFooterEven.copy(0, 10);
+ }
}
void XclImpPageSettings::ReadPageBreaks( XclImpStream& rStrm )
More information about the Libreoffice-commits
mailing list