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 );