diff options
-rw-r--r-- | sc/source/ui/formdlg/dwfunctr.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx index bc72d0dfe70b..25fc96e8e96c 100644 --- a/sc/source/ui/formdlg/dwfunctr.cxx +++ b/sc/source/ui/formdlg/dwfunctr.cxx @@ -791,12 +791,12 @@ void ScFunctionDockWin::UpdateFunctionList() } else // LRU-Liste { - for(::std::vector<const formula::IFunctionDescription*>::iterator iter=aLRUList.begin();iter!=aLRUList.end();++iter) + for (::std::vector<const formula::IFunctionDescription*>::iterator iter=aLRUList.begin(); + iter != aLRUList.end(); ++iter) { const formula::IFunctionDescription* pDesc = *iter; - pAllFuncList->SetEntryData( - pAllFuncList->InsertEntry(pDesc->getFunctionName()), - (void*)pDesc ); + if (pDesc) + pAllFuncList->SetEntryData( pAllFuncList->InsertEntry( pDesc->getFunctionName()), (void*)pDesc); } } |