[Libreoffice-commits] core.git: sw/source
Jim Raykowski (via logerrit)
logerrit at kemper.freedesktop.org
Thu Mar 18 00:51:33 UTC 2021
sw/source/uibase/utlui/content.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 005adbefc746f9024adcf572c287dc061acbcf00
Author: Jim Raykowski <raykowj at gmail.com>
AuthorDate: Tue Mar 9 12:06:20 2021 -0900
Commit: Jim Raykowski <raykowj at gmail.com>
CommitDate: Thu Mar 18 01:50:50 2021 +0100
Sw Navigator: fix table selection
Fixes table selection from the Navigator not selecting the whole table.
Change-Id: If6a9161d011a056aad02c3bd99c19e62802288c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112254
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj at gmail.com>
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index d70494d64cc7..fe9da9cfc0e1 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -3953,7 +3953,7 @@ void SwContentTree::ExecuteContextMenuAction(const OString& rSelectedPopupEntry)
case 804:
ExecCommand("demote", true);
break;
- case 805:
+ case 805: // select document content
{
m_pActiveShell->KillPams();
m_pActiveShell->ClearMark();
@@ -3973,7 +3973,7 @@ void SwContentTree::ExecuteContextMenuAction(const OString& rSelectedPopupEntry)
else if (eTypeId == ContentTypeId::TABLE)
{
m_pActiveShell->GotoTable(pCnt->GetName());
- m_pActiveShell->SelAll();
+ m_pActiveShell->GetView().GetViewFrame()->GetDispatcher()->Execute(FN_TABLE_SELECT_ALL);
}
else if (eTypeId == ContentTypeId::REGION)
{
More information about the Libreoffice-commits
mailing list