Fix coverity issue in text layout-engine 80/261680/1
authorBowon Ryu <bowon.ryu@samsung.com>
Thu, 22 Jul 2021 09:14:32 +0000 (18:14 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Thu, 22 Jul 2021 09:14:32 +0000 (18:14 +0900)
commitb618a881f27fb24039f51d5bbf083d74d120205e
treece96facf99906fa0e5ce79c2a70886a4ef93dd67
parent0f5a244a8e8f8fa680dccafca44ccc9fedb387a8
Fix coverity issue in text layout-engine

middleLineIndex is always bigger than 0u by the while condition (0u < middleLineIndex).
therefore execution cannot reach the expression 0u inside the statement below.
: ellipsisLineIndex = middleLineIndex > 0u ? middleLineIndex - 1u : 0u;

Change-Id: I1f2f85768ba638d3493f62a22b3d89a75ef462ae
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/text/layouts/layout-engine.cpp