cid#1608320 COPY_INSTEAD_OF_MOVE
and cid#1607135 COPY_INSTEAD_OF_MOVE Change-Id: If8f36744c53bb0515516a23589ffdb389aaec02c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177592 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
parent
10ea4f0b93
commit
096a1f0a6f
1 changed files with 6 additions and 10 deletions
|
@ -685,13 +685,11 @@ void ScAccessibleSpreadsheet::Notify( SfxBroadcaster& rBC, const SfxHint& rHint
|
|||
OUString valStr(pScDoc->GetString(aNewCell.Col(),aNewCell.Row(),aNewCell.Tab()));
|
||||
if(mpAccCell.is() && m_strCurCellValue != valStr)
|
||||
{
|
||||
uno::Any aOldValue;
|
||||
uno::Any aNewValue;
|
||||
(void)comphelper::OCommonAccessibleText::implInitTextChangedEvent(m_strCurCellValue, valStr, aOldValue, aNewValue);
|
||||
AccessibleEventObject aTextChangedEvent;
|
||||
(void)comphelper::OCommonAccessibleText::implInitTextChangedEvent(m_strCurCellValue, valStr,
|
||||
aTextChangedEvent.OldValue,
|
||||
aTextChangedEvent.NewValue);
|
||||
aTextChangedEvent.EventId = AccessibleEventId::TEXT_CHANGED;
|
||||
aTextChangedEvent.OldValue = aOldValue;
|
||||
aTextChangedEvent.NewValue = aNewValue;
|
||||
mpAccCell->CommitChange(aTextChangedEvent);
|
||||
|
||||
if (pScDoc->HasValueData(maActiveCell))
|
||||
|
@ -788,13 +786,11 @@ void ScAccessibleSpreadsheet::CommitFocusCell(const ScAddress &aNewCell)
|
|||
OUString valStr(pScDoc->GetString(aOldActiveCell.Col(),aOldActiveCell.Row(),aOldActiveCell.Tab()));
|
||||
if(m_strCurCellValue != valStr)
|
||||
{
|
||||
uno::Any aOldValue;
|
||||
uno::Any aNewValue;
|
||||
(void)comphelper::OCommonAccessibleText::implInitTextChangedEvent(m_strCurCellValue, valStr, aOldValue, aNewValue);
|
||||
AccessibleEventObject aTextChangedEvent;
|
||||
(void)comphelper::OCommonAccessibleText::implInitTextChangedEvent(m_strCurCellValue, valStr,
|
||||
aTextChangedEvent.OldValue,
|
||||
aTextChangedEvent.NewValue);
|
||||
aTextChangedEvent.EventId = AccessibleEventId::TEXT_CHANGED;
|
||||
aTextChangedEvent.OldValue = aOldValue;
|
||||
aTextChangedEvent.NewValue = aNewValue;
|
||||
mpAccCell->CommitChange(aTextChangedEvent);
|
||||
|
||||
if (pScDoc->HasValueData(maActiveCell))
|
||||
|
|
Loading…
Reference in a new issue