X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fcolor-segmentation.cpp;h=3c2f76aed48ae929f69cc8cce2578b324b81d5f4;hb=ac55712de2be195a393deebc6ea29d51560b9e75;hp=f0d683869b854d8be9b47154e10a2a3f472f2050;hpb=32b0b5f6c65842c8bd1140b1eeb9691fdca0c866;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/color-segmentation.cpp b/dali-toolkit/internal/text/color-segmentation.cpp index f0d6838..3c2f76a 100644 --- a/dali-toolkit/internal/text/color-segmentation.cpp +++ b/dali-toolkit/internal/text/color-segmentation.cpp @@ -40,12 +40,12 @@ namespace Text * @param[in,out] colors The vector of colors. * @param[in] color The color to find. * - * @return The index where the color is in the vector. + * @return The index + 1 where the color is in the vector. The index zero is reserved for the default color. */ ColorIndex FindColor( Vector& colors, const Vector4& color ) { - ColorIndex index = 1u; + ColorIndex index = 1u; // The index zero is reserved for the default color. for( Vector::Iterator it = colors.Begin(), endIt = colors.End(); it != endIt;