summaryrefslogtreecommitdiff
path: root/chart2/source/model/main/Diagram.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-09-18 14:01:12 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-09-18 14:01:12 +0000
commit9fcf0a4370bc2790c747958691cfe7bd7b61cf6c (patch)
tree45df9adb4e05ad75ef8ceb610f503eb4abda016f /chart2/source/model/main/Diagram.cxx
parent291eceb9fed81cbca34d39171a971264949ffbd2 (diff)
INTEGRATION: CWS chart11 (1.16.2); FILE MERGED
2007/08/23 12:36:57 bm 1.16.2.2: RESYNC: (1.16-1.17); FILE MERGED 2007/07/31 12:56:45 bm 1.16.2.1: #i80084# avoid usage of map operator[] with enums as keys, simplify initialization of default property values
Diffstat (limited to 'chart2/source/model/main/Diagram.cxx')
-rw-r--r--chart2/source/model/main/Diagram.cxx18
1 files changed, 5 insertions, 13 deletions
diff --git a/chart2/source/model/main/Diagram.cxx b/chart2/source/model/main/Diagram.cxx
index f25a935968b4..f14e9aff9e51 100644
--- a/chart2/source/model/main/Diagram.cxx
+++ b/chart2/source/model/main/Diagram.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: Diagram.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: ihi $ $Date: 2007-08-17 12:15:00 $
+ * last change: $Author: vg $ $Date: 2007-09-18 15:01:12 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -134,17 +134,9 @@ void lcl_AddPropertiesToVector(
void lcl_AddDefaultsToMap(
::chart::tPropertyValueMap & rOutMap )
{
- OSL_ASSERT( rOutMap.end() == rOutMap.find( PROP_DIAGRAM_SORT_BY_X_VALUES ));
- rOutMap[ PROP_DIAGRAM_SORT_BY_X_VALUES ] =
- uno::makeAny( sal_False );
-
- OSL_ASSERT( rOutMap.end() == rOutMap.find( PROP_DIAGRAM_CONNECT_BARS ));
- rOutMap[ PROP_DIAGRAM_CONNECT_BARS ] =
- uno::makeAny( false );
-
- OSL_ASSERT( rOutMap.end() == rOutMap.find( PROP_DIAGRMA_RIGHT_ANGLED_AXES ));
- rOutMap[ PROP_DIAGRMA_RIGHT_ANGLED_AXES ] =
- uno::makeAny( false );
+ ::chart::PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DIAGRAM_SORT_BY_X_VALUES, false );
+ ::chart::PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DIAGRAM_CONNECT_BARS, false );
+ ::chart::PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DIAGRMA_RIGHT_ANGLED_AXES, false );
}
const Sequence< Property > & lcl_GetPropertySequence()