X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Flogical-model-impl.cpp;h=4516662c76469cfd8838eefe5811ca98a2176857;hb=b76ebb08792ed1b4dd05635c90a793219ba21f3d;hp=0de63d5774257ae3da7e22c5ef5eb26859888b53;hpb=38217811ad89debdb195c12f6c059f265fe6d5cd;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/logical-model-impl.cpp b/dali-toolkit/internal/text/logical-model-impl.cpp index 0de63d5..4516662 100644 --- a/dali-toolkit/internal/text/logical-model-impl.cpp +++ b/dali-toolkit/internal/text/logical-model-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -300,10 +300,18 @@ void LogicalModel::UpdateTextStyleRuns(CharacterIndex index, int numberOfCharact // Process the underlined runs. Vector removedUnderlinedCharacterRuns; UpdateCharacterRuns(index, - numberOfCharacters, - totalNumberOfCharacters, - mUnderlinedCharacterRuns, - removedUnderlinedCharacterRuns); + numberOfCharacters, + totalNumberOfCharacters, + mUnderlinedCharacterRuns, + removedUnderlinedCharacterRuns); + + // Process the strikethrough runs. + Vector removedStrikethroughCharacterRuns; + UpdateCharacterRuns(index, + numberOfCharacters, + totalNumberOfCharacters, + mStrikethroughCharacterRuns, + removedStrikethroughCharacterRuns); // Process the background color runs. Vector removedBackgroundColorRuns; @@ -463,6 +471,11 @@ void LogicalModel::ClearFontDescriptionRuns() FreeFontFamilyNames(mFontDescriptionRuns); } +void LogicalModel::ClearStrikethroughRuns() +{ + mStrikethroughCharacterRuns.Clear(); +} + void LogicalModel::CreateParagraphInfo(CharacterIndex startIndex, Length numberOfCharacters) {