diff options
author | Eike Rathke <erack@redhat.com> | 2016-05-04 13:41:59 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-05-04 13:48:36 +0200 |
commit | 3a767d91bfa70af4303b905cefa038181d56cc9a (patch) | |
tree | a5e8b05958aa65dfbc387fc01a7c5a435041919d /sc/source | |
parent | 0db367ac7c44547b62d6bd6926e3535072f0cfad (diff) |
Resolves: tdf#94146 a11y crash, obtain formula using the correct pointer
Fallout from IAccessible2 integration. Of the union, wrong string
pointer instead of formula cell pointer was used.
Change-Id: I1afaf0ffff14a770ab52e8cbf880708bd66b3ef2
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/view/tabvwsh.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabvwsh.cxx b/sc/source/ui/view/tabvwsh.cxx index c5a97b52790f..ccf681b47248 100644 --- a/sc/source/ui/view/tabvwsh.cxx +++ b/sc/source/ui/view/tabvwsh.cxx @@ -39,6 +39,7 @@ #include "dwfunctr.hxx" #include "sc.hrc" #include "spelldialog.hxx" +#include "formulacell.hxx" #include <searchresults.hxx> #include <sfx2/request.hxx> @@ -114,7 +115,7 @@ OUString ScTabViewShell::GetFormula(ScAddress& rAddress) ScRefCellValue aCell(*pDoc, rAddress); if (!aCell.isEmpty() && aCell.meType == CELLTYPE_FORMULA) { - sFormula = aCell.mpString->getString(); + aCell.mpFormula->GetFormula( sFormula); } return sFormula; } |