diff options
author | Eike Rathke <erack@redhat.com> | 2015-09-01 16:45:41 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-09-01 17:00:10 +0200 |
commit | f8512ed179958339fb5cb7500836bb2da5d8dabf (patch) | |
tree | 8d545d6856f07ae975b04b638814180e67f2f65f /sc | |
parent | b1a918ae8aca9e9a1eaebecef3b82e011b10665f (diff) |
TableRef: of course ScDBData at the referenced pos, not the formula pos
Change-Id: I6166293cfa0704ef96df917b7af1940d5efbdb14
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 5aa34b3b8c35..3eaff198d9e0 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -4705,9 +4705,9 @@ void ScCompiler::CreateStringFromSingleRef( OUStringBuffer& rBuffer, const Formu if (aStr.isEmpty()) { // 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) - aStr = pData->GetTableColumnName( aPos.Col()); + aStr = pData->GetTableColumnName( aAbs.Col()); } escapeTableRefColumnSpecifier( aStr); rBuffer.append(aStr); |