Kaydet (Commit) f8512ed1 authored tarafından Eike Rathke's avatar Eike Rathke

TableRef: of course ScDBData at the referenced pos, not the formula pos

Change-Id: I6166293cfa0704ef96df917b7af1940d5efbdb14
üst b1a918ae
...@@ -4705,9 +4705,9 @@ void ScCompiler::CreateStringFromSingleRef( OUStringBuffer& rBuffer, const Formu ...@@ -4705,9 +4705,9 @@ void ScCompiler::CreateStringFromSingleRef( OUStringBuffer& rBuffer, const Formu
if (aStr.isEmpty()) if (aStr.isEmpty())
{ {
// Hope that there's still the original column name available. // Hope that there's still the original column name available.
const ScDBData* pData = pDoc->GetDBAtCursor( aPos.Col(), aPos.Row(), aPos.Tab(), true); const ScDBData* pData = pDoc->GetDBAtCursor( aAbs.Col(), aAbs.Row(), aAbs.Tab(), true);
if (pData) if (pData)
aStr = pData->GetTableColumnName( aPos.Col()); aStr = pData->GetTableColumnName( aAbs.Col());
} }
escapeTableRefColumnSpecifier( aStr); escapeTableRefColumnSpecifier( aStr);
rBuffer.append(aStr); rBuffer.append(aStr);
......
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