[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - sw/source
Caolán McNamara
caolanm at redhat.com
Fri Jun 1 04:33:17 UTC 2018
sw/source/ui/fldui/fldvar.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 32581ff2f5f99883802253d809c9f760b855c934
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/55133
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 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())
More information about the Libreoffice-commits
mailing list