summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-05-31 14:22:18 +0100
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2018-06-01 06:32:55 +0200
commit32581ff2f5f99883802253d809c9f760b855c934 (patch)
tree49bf94712328297ed6e1b9c15d8ad392c9eb9576
parent37098d5b3fc6e1218e5a3465df8bac2882abf5c7 (diff)
Resolves: tdf#116268 use on/off data, not pos to determine which is which
Change-Id: I73127bc6ea78daaf1e79596067c1cdeb692e1566 Reviewed-on: https://gerrit.libreoffice.org/55133 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.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())