X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Flayouts%2Flayout-engine.cpp;h=ad513a82672ea0799a000f7ea0314bedf6fae48b;hp=54a957c696e1d1661195f408e2b50da40527d78e;hb=0031ca8312dba666109e4f7fbb62a3a5e288b7c2;hpb=10967b843a1ab64b10f8a8e1c7757657b9ddba9a diff --git a/dali-toolkit/internal/text/layouts/layout-engine.cpp b/dali-toolkit/internal/text/layouts/layout-engine.cpp index 54a957c..ad513a8 100644 --- a/dali-toolkit/internal/text/layouts/layout-engine.cpp +++ b/dali-toolkit/internal/text/layouts/layout-engine.cpp @@ -766,10 +766,12 @@ struct LayoutEngine::Impl { if( isLastLine && !isRTL ) { + // Add the length of the white saces at the end of the line. lineLength += line.extraLength; if( lineLength > boxWidth ) { - lineLength = boxWidth; + // The line's length is longer than the box's width. + // Set the line's offset to 0 and nothing else to do. line.alignmentOffset = 0.f; break; }