sc/source/filter/lotus/op.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
New commits: commit 1d75ed970a4f698f48793a71fdba1f15f3cf3e5e Author: Caolán McNamara <caol...@redhat.com> Date: Thu May 31 21:33:56 2018 +0100 ofz#6440 timeout during fuzzing Change-Id: I720c64b9bb14cee33ffab5547a7353e83f23a14c Reviewed-on: https://gerrit.libreoffice.org/55147 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/filter/lotus/op.cxx b/sc/source/filter/lotus/op.cxx index 7dec5cfbd0d1..6fca43504b8d 100644 --- a/sc/source/filter/lotus/op.cxx +++ b/sc/source/filter/lotus/op.cxx @@ -31,6 +31,7 @@ #include <editeng/udlnitem.hxx> #include <editeng/wghtitem.hxx> #include <editeng/justifyitem.hxx> +#include <unotools/configmgr.hxx> #include <formulacell.hxx> #include <rangenam.hxx> @@ -323,9 +324,15 @@ void OP_Window1(LotusContext& rContext, SvStream& r, sal_uInt16 n) nDefWidth = static_cast<sal_uInt16>( TWIPS_PER_CHAR * nDefWidth ); + const bool bFuzzing = utl::ConfigManager::IsFuzzing(); + // instead of default, set all Cols in SC by hand - for( SCCOL nCol = 0 ; nCol <= MAXCOL ; nCol++ ) + for (SCCOL nCol = 0 ; nCol <= MAXCOL ; nCol++) + { rContext.pDoc->SetColWidth( nCol, 0, nDefWidth ); + if (bFuzzing) + break; + } } void OP_Blank(LotusContext& rContext, SvStream& r, sal_uInt16 /*n*/) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits