Kaydet (Commit) 5af699cf authored tarafından Markus Mohrhard's avatar Markus Mohrhard

don't deduce increment from multiple equal list entries, fdo#39500

üst cc94996d
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment