summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-04-15 00:11:08 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-04-15 01:26:03 +0200
commit5af699cf62b2313980add377a777c49dc1e7ae2a (patch)
tree96d038df8647d0fb2d9456629d07694e97971364 /sc
parentcc94996d96ea8d8e3d136af66846707f9b838bbf (diff)
don't deduce increment from multiple equal list entries, fdo#39500
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table4.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx
index d15a74e85f0a..cced07c41b1f 100644
--- a/sc/source/core/data/table4.cxx
+++ b/sc/source/core/data/table4.cxx
@@ -342,6 +342,22 @@ void ScTable::FillAnalyse( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
{
rtl::OUString aStr;
GetString(nCol, nRow, aStr);
+
+ // fdo#39500 don't deduce increment from multiple equal list entries
+ bool bAllSame = true;
+ for (sal_uInt16 i = 0; i < nCount; ++i)
+ {
+ rtl::OUString aTestStr;
+ GetString(static_cast<SCCOL>(nCol + i* nAddX), static_cast<SCROW>(nRow + i * nAddY), aTestStr);
+ if(aStr != aTestStr)
+ {
+ bAllSame = false;
+ break;
+ }
+ }
+ if(bAllSame && nCount > 1)
+ return;
+
rListData = (ScUserListData*)(ScGlobal::GetUserList()->GetData(aStr));
if (rListData)
{