summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Johansson <sleeping.pillow@gmail.com>2014-10-16 12:14:15 +0200
committerMichael Stahl <mstahl@redhat.com>2014-11-07 11:43:28 +0000
commita148f119c7f6fe758f9bf8905ac12c646d934a52 (patch)
tree306c0d170ddb05b2a1cc6065f95f6eb3f2690ac5
parent162535ded77633a07871be917b719861bcaf9f43 (diff)
fdo#74441 [Accessiblity] Don't expose 0 for empty cells in Calc
At the moment non numercial cells in Calc is exposed to AT tools (screen readers etc) as the value 0. It makes more sence to present the string value of the cell which basically is what a sighted user will see. This small patch should be a good start into making Calc more accessible on Windows. Change-Id: Ide76f2dc044c98f32aa78836049f12f2251522eb Reviewed-on: https://gerrit.libreoffice.org/11996 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 55eca9dbb34aec8c435da91c0748453e3e097f1e) Reviewed-on: https://gerrit.libreoffice.org/12299 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--winaccessibility/source/service/AccObject.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/winaccessibility/source/service/AccObject.cxx b/winaccessibility/source/service/AccObject.cxx
index 63db986a069b..3f957e1cad40 100644
--- a/winaccessibility/source/service/AccObject.cxx
+++ b/winaccessibility/source/service/AccObject.cxx
@@ -392,6 +392,7 @@ void AccObject::SetValue( Any pAny )
case TEXT:
case PARAGRAPH:
case HEADING:
+ case TABLE_CELL:
if(pRText.get())
{
@@ -402,7 +403,6 @@ void AccObject::SetValue( Any pAny )
case TREE_ITEM:
//case CHECK_BOX: //Commented by Li Xing to disable the value for general checkbox
case COMBO_BOX:
- case TABLE_CELL:
case NOTE:
case SCROLL_BAR:
m_pIMAcc->Put_XAccValue( GetMAccessibleValueFromAny(pAny).getStr() );