diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-31 14:22:18 +0100 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2018-06-01 06:32:29 +0200 |
commit | a828a0fe795fb44e1daa0ece9c994973b3975fce (patch) | |
tree | 9f75160b41585ab2bdfd1fd7d22c2e647d8178cd | |
parent | 39f2125c4952063f4bdc36d9abba18daaee72d68 (diff) |
Resolves: tdf#116268 use on/off data, not pos to determine which is which
Change-Id: I73127bc6ea78daaf1e79596067c1cdeb692e1566
Reviewed-on: https://gerrit.libreoffice.org/55134
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r-- | sw/source/ui/fldui/fldvar.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx index cf3434c42e80..2594567d3c6e 100644 --- a/sw/source/ui/fldui/fldvar.cxx +++ b/sw/source/ui/fldui/fldvar.cxx @@ -531,7 +531,7 @@ void SwFieldVarPage::SubTypeHdl(ListBox const * pBox) if (IsFieldEdit() || pBox) // only when interacting via mouse m_pNameED->SetText(OUString()); - if (nSelPos != 0 && nSelPos != LISTBOX_ENTRY_NOTFOUND) + if (nSelData != 0 && nSelData != SIZE_MAX) { bValue = true; // SubType OFF - knows no Offset if (GetCurField() && IsFieldEdit()) |