diff options
Diffstat (limited to 'chart2/source/tools/ConfigColorScheme.cxx')
-rw-r--r-- | chart2/source/tools/ConfigColorScheme.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/tools/ConfigColorScheme.cxx b/chart2/source/tools/ConfigColorScheme.cxx index d0d0d722b764..23fcd4fa9e72 100644 --- a/chart2/source/tools/ConfigColorScheme.cxx +++ b/chart2/source/tools/ConfigColorScheme.cxx @@ -34,6 +34,7 @@ #include "macros.hxx" #include <unotools/configitem.hxx> +#include <sal/macros.h> #include <set> @@ -175,7 +176,7 @@ void ConfigColorScheme::retrieveConfigColors() 0xff00ff, 0x00ffff, 0xffff00 }; - static const sal_Int32 nMaxDefaultColors = sizeof( nDefaultColors ) / sizeof( sal_Int32 ); + static const sal_Int32 nMaxDefaultColors = SAL_N_ELEMENTS( nDefaultColors ); return nDefaultColors[ nIndex % nMaxDefaultColors ]; } |