[Libreoffice-commits] core.git: sc/source

Eike Rathke erack at redhat.com
Wed May 4 11:49:11 UTC 2016


 sc/source/ui/view/tabvwsh.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3a767d91bfa70af4303b905cefa038181d56cc9a
Author: Eike Rathke <erack at redhat.com>
Date:   Wed May 4 13:41:59 2016 +0200

    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

diff --git a/sc/source/ui/view/tabvwsh.cxx b/sc/source/ui/view/tabvwsh.cxx
index c5a97b5..ccf681b 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;
 }


More information about the Libreoffice-commits mailing list