summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/formdlg/dwfunctr.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx
index 7967163a94dc..322cf4b6c0a5 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);
}
}