| commit | 7d334ba7467d03e2d890e2926244f783d403878f | [log] |
|---|---|---|
| author | Michael Weghorn <m.weghorn@posteo.de> | Mon Jun 10 14:08:15 2024 +0200 |
| committer | Michael Weghorn <m.weghorn@posteo.de> | Tue Jun 11 03:15:43 2024 +0200 |
| tree | 78ba35f93a7ea626ff6402e25c8f749794c04c5b | |
| parent | 852cd511258e97a0df3b6fbe9fc0ae670c3fc843 [diff] |
tdf#158914 sc a11y: Remember new cell text again commit 5f9a955042822d05af5c04b2c852738c7e1e21a2 Author: Michael Weghorn <m.weghorn@posteo.de> Date: Fri Jun 7 13:03:19 2024 +0200 tdf#158914 sc a11y: Send TEXT_CHANGED event when text changes had made sending a `AccessibleEventId::VALUE_CHANGED` event conditional on the cell having a *numerical* value. Assigning the new string to `m_strCurCellValue` should always happen independent of this, though, as this is the string value, not the numerical value. Thanks to Patrick Luby for noting the difference in [1]. [1] https://gerrit.libreoffice.org/c/core/+/167961/comment/1af95eb6_7db33e0b/ Change-Id: I1d1da2caeb7f2199251599313ec4412d7b6e47b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168635 Tested-by: Jenkins Reviewed-by: Patrick Luby <guibomacdev@gmail.com> Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
diff --git a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx index 39998fa..1c27bbc 100644 --- a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx +++ b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx
@@ -697,8 +697,9 @@ void ScAccessibleSpreadsheet::Notify( SfxBroadcaster& rBC, const SfxHint& rHint AccessibleEventObject aEvent; aEvent.EventId = AccessibleEventId::VALUE_CHANGED; mpAccCell->CommitChange(aEvent); m_strCurCellValue=valStr; } m_strCurCellValue = valStr; } OUString tabName; pScDoc->GetName( maActiveCell.Tab(), tabName );