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-impl.cpp;h=294b534827cb45dbcac1a360fa9de708816527a8;hp=1b6666513fcce393b229d5d23a8155397962daf2;hb=a3c24db302ffb83a32a0b5d8fba0b2c9de2b6634;hpb=415d0772e9043f67f6201af352b3bc3d3535c3ab diff --git a/dali-toolkit/internal/text/text-controller-impl.cpp b/dali-toolkit/internal/text/text-controller-impl.cpp index 1b66665..294b534 100644 --- a/dali-toolkit/internal/text/text-controller-impl.cpp +++ b/dali-toolkit/internal/text/text-controller-impl.cpp @@ -39,6 +39,7 @@ #include #include #include +#include using namespace Dali; @@ -1620,9 +1621,22 @@ void Controller::Impl::CopyUnderlinedFromLogicalToVisualModels(bool shouldClearP Length numberOfCharacters = it->characterRun.numberOfCharacters; for(Length index = 0u; index < numberOfCharacters; index++) { - GlyphRun underlineGlyphRun; - underlineGlyphRun.glyphIndex = charactersToGlyph[characterIndex + index]; - underlineGlyphRun.numberOfGlyphs = glyphsPerCharacter[characterIndex + index]; + UnderlinedGlyphRun underlineGlyphRun; + underlineGlyphRun.glyphRun.glyphIndex = charactersToGlyph[characterIndex + index]; + underlineGlyphRun.glyphRun.numberOfGlyphs = glyphsPerCharacter[characterIndex + index]; + + //Copy properties (attributes) + underlineGlyphRun.properties.type = it->properties.type; + underlineGlyphRun.properties.color = it->properties.color; + underlineGlyphRun.properties.height = it->properties.height; + underlineGlyphRun.properties.dashGap = it->properties.dashGap; + underlineGlyphRun.properties.dashWidth = it->properties.dashWidth; + underlineGlyphRun.properties.typeDefined = it->properties.typeDefined; + underlineGlyphRun.properties.colorDefined = it->properties.colorDefined; + underlineGlyphRun.properties.heightDefined = it->properties.heightDefined; + underlineGlyphRun.properties.dashGapDefined = it->properties.dashGapDefined; + underlineGlyphRun.properties.dashWidthDefined = it->properties.dashWidthDefined; + mModel->mVisualModel->mUnderlineRuns.PushBack(underlineGlyphRun); } }