summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-02-06 18:08:03 -0500
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-02-07 08:51:54 +0000
commita1c6bed17f373947ee41d395fb380b663fba5d64 (patch)
tree1ba4c97bdcc1a1255453db3a035b70903258fc88
parent63950ec72806489b41c2109f5c3840dcf22f4c6c (diff)
fdo#74553: Use the shared formula column position Excel tells you...
Because sometimes this may be correct. Change-Id: Id2c47bb4ad3f91b366a25306169de58bb38c1e81 (cherry picked from commit 16442998b8b6ac7e284ab2377013f36c28b2cb8c) Reviewed-on: https://gerrit.libreoffice.org/7908 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/filter/excel/excform.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/excform.cxx b/sc/source/filter/excel/excform.cxx
index 0273ddd84e9d..644485fa87ab 100644
--- a/sc/source/filter/excel/excform.cxx
+++ b/sc/source/filter/excel/excform.cxx
@@ -124,7 +124,7 @@ void ImportExcel::Formula(
SCROW nSharedRow;
if (pFormConv->ReadSharedFormulaPosition(maStrm, nSharedCol, nSharedRow))
{
- ScAddress aRefPos(aScPos.Col(), nSharedRow, GetCurrScTab());
+ ScAddress aRefPos(nSharedCol, nSharedRow, GetCurrScTab());
const ScTokenArray* pSharedCode = pFormConv->GetSharedFormula(aRefPos);
if (pSharedCode)
{