[Libreoffice-commits] .: Branch 'libreoffice-3-6' - sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Jan 2 07:59:46 PST 2013


 sc/source/ui/docshell/docfunc.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 5fe2b0eee8058a64745a7a51fdd2ac5e102300ee
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Tue Jan 1 16:23:16 2013 +0100

    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

diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index c3cb2ca..2ed13d6 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -3734,10 +3734,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
         {


More information about the Libreoffice-commits mailing list