X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller-background-actor.cpp;h=bc7c79bfa8009a6c9876d11f0f6afe84c9c3d84b;hp=7def7e8bdc51835002c11a33b655d445713aba07;hb=38f0ea9fcdf1dc5037144fa19c8a52316c8af763;hpb=645bdbb832026172a6868286e000769645062c2c diff --git a/dali-toolkit/internal/text/text-controller-background-actor.cpp b/dali-toolkit/internal/text/text-controller-background-actor.cpp index 7def7e8..bc7c79b 100644 --- a/dali-toolkit/internal/text/text-controller-background-actor.cpp +++ b/dali-toolkit/internal/text/text-controller-background-actor.cpp @@ -112,7 +112,6 @@ Actor CreateControllerBackgroundActor(const View& textView, const VisualModelPtr Length yLineOffset = 0; Length prevLineIndex = 0; LineIndex lineIndex; - Length numberOfLines; for(uint32_t i = 0, glyphSize = glyphs.Size(); i < glyphSize; ++i) { @@ -125,7 +124,7 @@ Actor CreateControllerBackgroundActor(const View& textView, const VisualModelPtr const bool isDefaultBackgroundColor = (0u == backgroundColorIndex); const Vector4& backgroundColor = isDefaultBackgroundColor ? defaultBackgroundColor : *(backgroundColorsBuffer + backgroundColorIndex - 1u); - textVisualModel->GetNumberOfLines(i, 1, lineIndex, numberOfLines); + lineIndex = textVisualModel->GetLineOfGlyph(i); Length lineHeight = CalculateBackgroundLineHeight(lineRun[lineIndex]); if(lineIndex != prevLineIndex)