summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--forms/source/component/ListBox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index 90decec5d2ad..3ac34f89cb45 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -915,7 +915,7 @@ namespace frm
aBoundValue = static_cast<sal_Int16>(xListCursor->getRow()-1);
aValueList.push_back( aBoundValue );
- if ( bUseNULL && ( m_nNULLPos == -1 ) && aBoundValue.isNull() )
+ if ( m_nNULLPos == -1 && aBoundValue.isNull() )
m_nNULLPos = sal_Int16( aDisplayList.size() - 1 );
if ( bUseNULL && ( m_nNULLPos == -1 ) && aStr.isEmpty() )
// There is already a non-NULL entry with empty display string;