summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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())