summaryrefslogtreecommitdiff
path: root/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/dialogs/ChartTypeDialogController.cxx')
-rw-r--r--chart2/source/controller/dialogs/ChartTypeDialogController.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
index f7f5fcc9ecb9..a039467d1ddb 100644
--- a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
+++ b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
@@ -241,7 +241,7 @@ void ChartTypeDialogController::adjustParameterToMainType( ChartTypeParameter& r
}
if(!bFoundSomeMatch)
{
- if(rMap.begin()!=rMap.end())
+ if(!rMap.empty())
rParameter = (*rMap.begin()).second;
else
rParameter = ChartTypeParameter();