[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - sw/source
Caolán McNamara
caolanm at redhat.com
Fri Jun 1 04:32:52 UTC 2018
sw/source/ui/fldui/fldvar.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a828a0fe795fb44e1daa0ece9c994973b3975fce
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu May 31 14:22:18 2018 +0100
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 at libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
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())
More information about the Libreoffice-commits
mailing list