summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-01-10 07:25:21 +0100
committerDavid Tardon <dtardon@redhat.com>2011-01-10 07:26:23 +0100
commit0c525d8a446412893b5903e5fb734c132a43668e (patch)
treef2afcd13c03d8614c8b1d578eb0aa9008a14323a /writerfilter
parent335fc0758e62e9f2dbf9347531d04ad4d3cfac3b (diff)
use SAL_N_ELEMENTS
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/ConversionHelper.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/ConversionHelper.cxx b/writerfilter/source/dmapper/ConversionHelper.cxx
index 1b98712beebd..ad88a2c30427 100644
--- a/writerfilter/source/dmapper/ConversionHelper.cxx
+++ b/writerfilter/source/dmapper/ConversionHelper.cxx
@@ -137,8 +137,7 @@ void MakeBorderLine( sal_Int32 nLineThickness, sal_Int32 nLineType,
//no auto color for borders
if(!nLineColor)
++nLineColor;
- if(!bIsOOXML && sal::static_int_cast<sal_uInt32>(nLineColor) <
- sizeof(aBorderDefColor) / sizeof(nLineColor))
+ if(!bIsOOXML && sal::static_int_cast<sal_uInt32>(nLineColor) < SAL_N_ELEMENTS(aBorderDefColor))
nLineColor = aBorderDefColor[nLineColor];
enum eBorderCode