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

Kohei Yoshida kohei at kemper.freedesktop.org
Fri Apr 1 18:07:37 PDT 2011


 sc/source/core/data/documen3.cxx |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit e62f4c67135b87e57a974537d92dc0139f9adc14
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Fri Apr 1 21:05:08 2011 -0400

    Re-implement DB area extension prior to autofilter launching.
    
    This time store the extended DB area permanently.  This makes things
    a bit simpler.

diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index ea3b653..d49e48f 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -1354,6 +1354,15 @@ sal_Bool ScDocument::GetFilterEntries(
             SCCOL nEndCol;
             SCROW nEndRow;
             pDBData->GetArea( nAreaTab, nStartCol, nStartRow, nEndCol, nEndRow );
+
+            // Extend the DB area to include data rows immediately below.
+            // Note that the change is stored back to the DB.
+            SCCOL nCol1a = nStartCol, nCol2a = nEndCol;
+            SCROW nRow1a = nStartRow, nRow2a = nEndRow;
+            GetDataArea(nTab, nCol1a, nRow1a, nCol2a, nRow2a, false, false);
+            nEndRow = nRow2a;
+            pDBData->SetArea(nTab, nStartCol, nStartRow, nEndCol, nEndRow);
+
             if (pDBData->HasHeader())
                 ++nStartRow;
 


More information about the Libreoffice-commits mailing list