FontClient - Do not resize cache vectors to size one. 36/203536/1
authorVictor Cebollada <v.cebollada@samsung.com>
Mon, 15 Apr 2019 14:36:55 +0000 (15:36 +0100)
committerVictor Cebollada <v.cebollada@samsung.com>
Mon, 15 Apr 2019 14:53:07 +0000 (15:53 +0100)
commit1ff9108626c8c2c5e7e2f1f2795af698372cf134
treeeb59bb010af4a450c5eb1a3ad0c38ab435196cf1
parent0cf21c8af6a919c263b00d22cb205df2964d0b04
FontClient - Do not resize cache vectors to size one.

* The font id 0 is invalid. Some caches were adding an extra
  item in the position 0 to use the same index to access the
  cached value.
* Do not add this extra item and use the index-1 instead.

Change-Id: I0972fdba8cbee8a65750bf2092615e03313e9102
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
dali/internal/text/text-abstraction/font-client-plugin-impl.cpp