summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-09-01 16:45:41 +0200
committerEike Rathke <erack@redhat.com>2015-09-01 17:00:10 +0200
commitf8512ed179958339fb5cb7500836bb2da5d8dabf (patch)
tree8d545d6856f07ae975b04b638814180e67f2f65f /sc
parentb1a918ae8aca9e9a1eaebecef3b82e011b10665f (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.cxx4
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);