From 9b738520316b329251a9f815751fda4e25d25937 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 2 Oct 2015 20:37:14 +0100 Subject: xls: DefColWidth without pColRowBuff Change-Id: I36f9439e417b380bd3f999c02c55c29337796002 --- sc/source/filter/excel/impop.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sc/source/filter') diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx index 4339ae40bca0..e252185456c1 100644 --- a/sc/source/filter/excel/impop.cxx +++ b/sc/source/filter/excel/impop.cxx @@ -662,6 +662,12 @@ void ImportExcel::DefColWidth() // stored as entire characters -> convert to 1/256 of characters (as in COLINFO) double fDefWidth = 256.0 * maStrm.ReaduInt16(); + if (!pColRowBuff) + { + SAL_WARN("sc", "*ImportExcel::DefColWidth(): pColRowBuff is NULL!"); + return; + } + // #i3006# additional space for default width - Excel adds space depending on font size long nFontHt = GetFontBuffer().GetAppFontData().mnHeight; fDefWidth += XclTools::GetXclDefColWidthCorrection( nFontHt ); -- cgit v1.2.3