[Libreoffice-commits] .: sc/source

Muthu Subramanian sumuthu at kemper.freedesktop.org
Thu Dec 15 02:50:23 PST 2011


 sc/source/filter/excel/impop.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 9dab9a26aeaeeaabcef3f4900597ca57e7411a2d
Author: Muthu Subramanian <sumuthu at suse.com>
Date:   Thu Dec 15 16:49:52 2011 +0530

    fdo#33747: Row Height is unnecessarily large.

diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx
index 3c96481..533bbb9 100644
--- a/sc/source/filter/excel/impop.cxx
+++ b/sc/source/filter/excel/impop.cxx
@@ -937,6 +937,10 @@ void ImportExcel::Row34( void )
         aIn >> nRowHeight;  // direkt in Twips angegeben
         aIn.Ignore( 4 );
 
+        nRowHeight = nRowHeight & 0x7FFF; // Bit 15: Row Height not changed manually
+        if( !nRowHeight )
+            nRowHeight = (GetBiff() == EXC_BIFF2) ? 0x25 : 0x225;
+
         aIn >> nGrbit >> nXF;
 
         sal_uInt8 nLevel = ::extract_value< sal_uInt8 >( nGrbit, 0, 3 );


More information about the Libreoffice-commits mailing list