From 050ae686758d28f0c3bd1ed70843c2f547082654 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pierre-Andr=C3=A9=20Jacquod?= <pjacquod@alumni.ethz.ch>
Date: Thu, 24 Nov 2011 19:15:05 +0100
Subject: [PATCH] fdo#42286 do not shrink the filtered area when calling ExtendDataArea

this is a workaround to correct the effect of GetDataArea. A complete
solution will be to reimplement area determination for filters and when
activating / selecting possible filter input values
---
 sc/source/core/tool/dbdata.cxx |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx
index e897630..3993d5a 100644
--- a/sc/source/core/tool/dbdata.cxx
+++ b/sc/source/core/tool/dbdata.cxx
@@ -549,7 +549,8 @@ void ScDBData::ExtendDataArea(ScDocument* pDoc)
     SCCOL nCol1a = nStartCol, nCol2a = nEndCol;
     SCROW nRow1a = nStartRow, nRow2a = nEndRow;
     pDoc->GetDataArea(nTable, nCol1a, nRow1a, nCol2a, nRow2a, false, false);
-    nEndRow = nRow2a;
+    if( nEndRow < nRow2a)
+        nEndRow = nRow2a;
 }
 
 namespace {
-- 
1.7.3.4

