summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-12 00:29:42 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-06-10 16:37:08 +0100
commit6abe5b2bfc05cd893c4ad9ad23b5ab867aeabfb2 (patch)
tree37f10f9067eb1594015c3cc6fcb5cfeeb216cdcf /sc
parentbe8c5475e6299a4ad8f62e20fa28bb510acafd04 (diff)
Keep maActiveCell, mpAccCell in sync
Otherwise ScAccessibleSpreadsheet::GetAccessibleCellAt could return wrong results and JunitTest_sc_unoapi would fail at least on Mac OS X. Change-Id: I65e9231920d13393a6991db318d330ee42a985d4
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx
index f610824ae2b6..8f70b070eced 100644
--- a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx
+++ b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx
@@ -551,7 +551,9 @@ void ScAccessibleSpreadsheet::Notify( SfxBroadcaster& rBC, const SfxHint& rHint
}
else
{
- xChild = getAccessibleCellAt(aNewCell.Row(),aNewCell.Col());
+ mpAccCell = GetAccessibleCellAt(aNewCell.Row(),aNewCell.Col());
+ xChild = mpAccCell;
+ mpAccCell->Init();
maActiveCell = aNewCell;
aEvent.EventId = AccessibleEventId::ACTIVE_DESCENDANT_CHANGED_NOFOCUS;