Color segmentation - Comment updated. 59/67159/1
authorVictor Cebollada <v.cebollada@samsung.com>
Mon, 25 Apr 2016 10:35:01 +0000 (11:35 +0100)
committerVictor Cebollada <v.cebollada@samsung.com>
Mon, 25 Apr 2016 10:35:01 +0000 (11:35 +0100)
Change-Id: I82991c2f9813e7888b139bce8faad95e4e944c77
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
dali-toolkit/internal/text/color-segmentation.cpp

index f0d6838..3c2f76a 100644 (file)
@@ -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<Vector4>& colors,
                       const Vector4& color )
 {
-  ColorIndex index = 1u;
+  ColorIndex index = 1u; // The index zero is reserved for the default color.
   for( Vector<Vector4>::Iterator it = colors.Begin(),
          endIt = colors.End();
        it != endIt;