Fixed memory scribbler in text vector blob
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / rendering / vector-based / vector-blob-atlas.cpp
index 3b4270d..0f11c11 100644 (file)
@@ -195,7 +195,7 @@ void VectorBlobAtlas::TexSubImage(unsigned int offsetX,
   size_t dataIndex = 0;
   for(size_t y = 0; y < height; y++)
   {
-    pos = y * mTextureWidth * 4;
+    pos = y * width * 4;
     for(size_t x = 0; x < width; x++)
     {
       pixbuf[pos + x * 4]     = 0xFF & blob[dataIndex].r;