summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorheiko tietze <tietze.heiko@gmail.com>2019-02-20 09:29:19 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-20 14:14:56 +0100
commit6e41367798d4341d601069005ae6ff6ac032f81f (patch)
tree9cc0fd61106d7934e84a821c0914fc4ed4f5dd72 /svx
parent97a42da2e39c59974b343f8e945b77e2b28e84ab (diff)
Resolves tdf#107918 - Insert mode status activation and display
Patch shows Insert as well on macOS, and keep it hidden otherwise Change-Id: Ie8dd32198d93c50ffd83e8aaf4b007b1ecf5c547 Reviewed-on: https://gerrit.libreoffice.org/68065 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/stbctrls/insctrl.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/svx/source/stbctrls/insctrl.cxx b/svx/source/stbctrls/insctrl.cxx
index f77577e2bc3f..952f82332f8e 100644
--- a/svx/source/stbctrls/insctrl.cxx
+++ b/svx/source/stbctrls/insctrl.cxx
@@ -70,7 +70,13 @@ void SvxInsertStatusBarControl::Paint( const UserDrawEvent& )
void SvxInsertStatusBarControl::DrawItemText_Impl()
{
- OUString aText;
+ OUString aText = "";
+ // tdf#107918 on macOS without an Insert key it's hard to figure out how to switch modes
+ // so we show both Insert and Overwrite
+#ifdef MACOSX
+ if ( bInsert )
+ aText = SvxResId( RID_SVXSTR_INSERT_TEXT );
+#endif
if ( !bInsert )
aText = SvxResId( RID_SVXSTR_OVERWRITE_TEXT );