diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2020-03-22 11:45:08 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2020-03-24 00:07:33 +0100 |
commit | a50d20b114b4d418cebb968af4b40645dfac087a (patch) | |
tree | cbeb930454abb586b874c95334b0308f35457542 | |
parent | 8ed4ac6152c96280616a784b47c4f75df147501a (diff) |
sw: keep the cursor visible after creating SwDrawTextShell
For some mysterious reason the cursor was forced to
become hidden after creating SwDrawTextShell, which
is used to edit the text on shapes. Doing this
didn't have a negative effect on desktop, because
the cursor was shown anyway at a later point.
However, for LOK, the cursor was not restored. This
was unexpected as the clients didn't know editing
was possible (and on mobile wouldn't even show
the keyboard).
There doesn't seem to be any ill-effect to leaving
the cursor enabled in all cases after creating
an SwDrawTextShell instance.
Change-Id: Ifae8d533ef48b2146a451d58d729e46f5248be71
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90897
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
-rw-r--r-- | sw/source/uibase/shells/drwtxtsh.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx index cf6e1765e3fd..6d83dd0d05c6 100644 --- a/sw/source/uibase/shells/drwtxtsh.cxx +++ b/sw/source/uibase/shells/drwtxtsh.cxx @@ -124,9 +124,9 @@ SwDrawTextShell::SwDrawTextShell(SwView &rV) : SwWrtShell &rSh = GetShell(); SetPool(rSh.GetAttrPool().GetSecondaryPool()); + // Initialize and show cursor to start editing. Init(); - rSh.NoEdit(); SetName("ObjectText"); SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::DrawText)); } |