diff options
Diffstat (limited to 'svtools/source/control/valueacc.cxx')
-rw-r--r-- | svtools/source/control/valueacc.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx index 5451d8ac5572..afdb728f450e 100644 --- a/svtools/source/control/valueacc.cxx +++ b/svtools/source/control/valueacc.cxx @@ -719,12 +719,14 @@ ValueSetItem* ValueSetAcc::getItem (USHORT nIndex) const ValueSetItem* pItem = NULL; if (HasNoneField()) + { if (nIndex == 0) // When present the first item is the then allways visible none field. pItem = mpParent->ImplGetItem (VALUESET_ITEM_NONEITEM); else // Shift down the index to compensate for the none field. nIndex -= 1; + } if (pItem == NULL) pItem = mpParent->ImplGetVisibleItem (static_cast<USHORT>(nIndex)); |