diff options
-rw-r--r-- | editeng/source/items/itemtype.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/items/itemtype.cxx b/editeng/source/items/itemtype.cxx index daaba33f2273..58506af921e6 100644 --- a/editeng/source/items/itemtype.cxx +++ b/editeng/source/items/itemtype.cxx @@ -149,13 +149,13 @@ XubString GetColorString( const Color& rCol ) COL_LIGHTGRAY, COL_LIGHTBLUE, COL_LIGHTGREEN, COL_LIGHTCYAN, COL_LIGHTRED, COL_LIGHTMAGENTA, COL_YELLOW, COL_WHITE }; - while ( nColor < sizeof(aColAry)/sizeof(ColorData) && + while ( nColor < SAL_N_ELEMENTS(aColAry) && aColAry[nColor] != nColData ) { nColor += 1; } - if ( nColor < sizeof(aColAry)/sizeof(ColorData) ) + if ( nColor < SAL_N_ELEMENTS(aColAry) ) sStr = EE_RESSTR( RID_SVXITEMS_COLOR_BEGIN + nColor + 1 ); if ( sStr.isEmpty() ) |