summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-05-31 14:22:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-05-31 22:04:22 +0200
commitb83ec344f914ec6571d6d53b1ea7d0924db7a6a4 (patch)
tree919d78c76261cc24d098a6b9fa0a18c41b8ce74d
parent053d4b0bc3288c6e7e09ff2e1cdb0f8219bc3821 (diff)
Resolves: tdf#116268 use on/off data, not pos to determine which is which
Change-Id: I73127bc6ea78daaf1e79596067c1cdeb692e1566 Reviewed-on: https://gerrit.libreoffice.org/55132 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-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 14c47ba94e71..3886a510694a 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())