summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-12 00:29:42 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-12 00:29:42 +0100
commit77e7301aebe56b24562865efdebdbf66521942d3 (patch)
tree480a6e6919f503c98c3f41a1c7735aa9f44fff20 /sc/source
parentb200f8d73c7ae1561f410ed7857d0c4f7642d051 (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/source')
-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 5a525d0c43ff..6aa263b35d4a 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;