summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-01-01 16:23:16 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-01-01 16:23:16 +0100
commitf843850ee9994653673ef5591aae875d7fb22fed (patch)
tree286e4da603378deb35f44a4ad24e943c7ba4b648 /sc
parent2e1abe1c59b1121ffb5d46afe82ce985cb70c4db (diff)
fdo#47466 FORMATTING: Autoformat empty rows causes app to crash
Thank you John LeMoyne Castle for your support http://nabble.documentfoundation.org/Wrong-indentation-which-leads-to-segfault-in-sc-source-ui-docshell-docfunc-cxx-td4026726.html However, the weird thing is I reproduced the crash with master sources but didn't with 4.0 branch nor with 3.5.4.2 Debian packages Change-Id: Ia5366f479a1066106551b77b5a6315fb78e1bf7d
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docfunc.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index abcd66dfee87..bbd6c961bdb0 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -3739,10 +3739,12 @@ bool ScDocFunc::AutoFormat( const ScRange& rRange, const ScMarkData* pTabMark,
ScMarkData::iterator itr = aMark.begin(), itrEnd = aMark.end();
for (; itr != itrEnd && *itr < nTabCount; ++itr)
+ {
SetWidthOrHeight( sal_True, 1,nCols, *itr, SC_SIZE_VISOPT, STD_EXTRA_WIDTH, false, sal_True);
SetWidthOrHeight( false,1,nRows, *itr, SC_SIZE_VISOPT, 0, false, false);
rDocShell.PostPaint( 0,0,*itr, MAXCOL,MAXROW,*itr,
PAINT_GRID | PAINT_LEFT | PAINT_TOP );
+ }
}
else
{