diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-28 20:16:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-29 14:54:39 +0100 |
commit | e48dbe4f14da4677db631edffc5275c3c24b3ede (patch) | |
tree | fd06e6e67fd200aeab0b4ce48b67fe3493114f42 /editeng | |
parent | 1c235c1343ed7b88a3e6b923b9b0d6e567054f1c (diff) |
Resolves: tdf#158608 put calc spelling suggestions at start of context menu
a problem since:
commit 57544b075b77331b7b1cc7cb18898a52e7bb21a6
Author: Caolán McNamara <caolanm@redhat.com>
Date: Sat Dec 12 21:21:09 2020 +0000
weld editview menu
Change-Id: Id2ffd7f4f3da15d5c0ebc1c7a17247e8ab1ec5bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161389
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editview.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx index 77dab94e6b98..e047e6a41ffa 100644 --- a/editeng/source/editeng/editview.cxx +++ b/editeng/source/editeng/editview.cxx @@ -1087,10 +1087,11 @@ bool EditView::ExecuteSpellPopup(const Point& rPosPixel, const Link<SpellCallbac for ( sal_uInt16 nW = 0; nW < nWords; nW++ ) { OUString aAlternate( pAlt[nW] ); - xPopupMenu->append(OUString::number(MN_ALTSTART + nW), aAlternate); - xAutoMenu->append(OUString::number(MN_AUTOSTART + nW), aAlternate); + OUString sId(OUString::number(MN_ALTSTART + nW)); + xPopupMenu->insert(nW, sId, aAlternate, nullptr, nullptr, nullptr, TRISTATE_INDET); + xAutoMenu->append(sId, aAlternate); } - xPopupMenu->append_separator("separator2"); + xPopupMenu->insert_separator(nWords, "separator2"); } else { |