X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=base%2Fdali-toolkit%2Finternal%2Fcontrols%2Ftext-view%2Ftext-view-word-processor.cpp;h=6e3f8cca0df42c4716849daf04d4ac865a096896;hb=refs%2Fchanges%2F47%2F27247%2F1;hp=e1239307ffcf64b7066b2f9d0d8d462ba22ed6f5;hpb=31f8b86ac06be7e61fe3a8637c27e55f12e41168;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/base/dali-toolkit/internal/controls/text-view/text-view-word-processor.cpp b/base/dali-toolkit/internal/controls/text-view/text-view-word-processor.cpp index e123930..6e3f8cc 100644 --- a/base/dali-toolkit/internal/controls/text-view/text-view-word-processor.cpp +++ b/base/dali-toolkit/internal/controls/text-view/text-view-word-processor.cpp @@ -1,26 +1,26 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2014 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ // FILE HEADER -#include "text-view-word-processor.h" +#include // INTERNAL INCLUDES -#include -#include "text-view-processor-helper-functions.h" -#include "text-view-processor-dbg.h" +#include +#include namespace Dali { @@ -155,7 +155,7 @@ void CreateWordTextInfo( const MarkupProcessor::StyledTextArray& word, characterLayoutInfo.mSize.height = characterLayoutInfo.mHeight; characterLayoutInfo.mAscender = ascender; - if( styledCharacter.mStyle.GetUnderline() ) + if( styledCharacter.mStyle.IsUnderlineEnabled() ) { characterLayoutInfo.mUnderlineThickness = font.GetUnderlineThickness(); // Both thickness and position includes the characterLayoutInfo.mUnderlinePosition = font.GetUnderlinePosition(); // vertical pad adjust used in effects like glow or shadow.