Kaydet (Commit) 06ea887f authored tarafından Tamás Zolnai's avatar Tamás Zolnai

tdf#71435: Accessible caret-moved events are missing when "freeze" is enabled

Two accessible document is created when "freeze" options is
enabled. meSplitPos identifies which accessible document handle
which part of the window. We should handle events only in that
accessible document which handles the active part.

Change-Id: Ic9674344951f620546dd272beaad796de611d258
Reviewed-on: https://gerrit.libreoffice.org/32065Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTamás Zolnai <tamas.zolnai@collabora.com>
üst 980dce83
...@@ -1577,7 +1577,7 @@ void ScAccessibleDocument::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) ...@@ -1577,7 +1577,7 @@ void ScAccessibleDocument::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
} }
else if ((rHint.GetId() == SfxHintId::ScAccEnterEditMode)) // this event comes only on creating edit field of a cell else if ((rHint.GetId() == SfxHintId::ScAccEnterEditMode)) // this event comes only on creating edit field of a cell
{ {
if (mpViewShell->GetViewData().HasEditView(meSplitPos)) if (mpViewShell->GetViewData().GetEditActivePart() == meSplitPos)
{ {
ScViewData& rViewData = mpViewShell->GetViewData(); ScViewData& rViewData = mpViewShell->GetViewData();
const EditEngine* pEditEng = rViewData.GetEditView(meSplitPos)->GetEditEngine(); const EditEngine* pEditEng = rViewData.GetEditView(meSplitPos)->GetEditEngine();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment