summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-04-29 16:48:45 +0200
committerMichael Stahl <mstahl@redhat.com>2016-04-30 00:21:33 +0200
commit6d81c777232f3abeb3b05f89ad37f266d65eabbb (patch)
tree4b518c1ecad40f438ffd25bebef6793a6a959142 /sw
parentbf47fef3a87d8546f18a36ade4e85f7c6ecf993b (diff)
sw: SwFieldVarPage: disable "Insert" button on "Input field"...
... if no variable name is selected. It doesn't work in this case. Change-Id: I36745806bcfc688b54b1ec49d0376b05bb5bbea6
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/fldui/fldvar.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx
index 1c518babffd7..3d162721e960 100644
--- a/sw/source/ui/fldui/fldvar.cxx
+++ b/sw/source/ui/fldui/fldvar.cxx
@@ -937,7 +937,7 @@ IMPL_LINK_NOARG_TYPED(SwFieldVarPage, ModifyHdl, Edit&, void)
bInsert = false;
}
- if( !nLen && ( nTypeId == TYP_SETFLD ||
+ if (!nLen && (nTypeId == TYP_SETFLD || nTypeId == TYP_INPUTFLD ||
(!IsFieldEdit() && nTypeId == TYP_GETFLD ) ) )
bInsert = false;