From 85ffffc740786b60796b4c84acd38aa87c3d7741 Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Mon, 11 Sep 2017 17:51:02 +0900 Subject: [PATCH] Revert "[Tizen] fix LineWrap GET error" This reverts commit 38e93f5825a3a705b15047f1f17e8f28a3376cf0. Change-Id: I43294543e06548efb6ec1a329294f51de3975a36 --- dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp | 8 +------- dali-toolkit/internal/controls/text-controls/text-label-impl.cpp | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) mode change 100755 => 100644 dali-toolkit/internal/controls/text-controls/text-label-impl.cpp diff --git a/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp index ca6f5ab..97cdb82 100755 --- a/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp @@ -1116,13 +1116,7 @@ Property::Value TextEditor::GetProperty( BaseObject* object, Property::Index ind { if( impl.mController ) { - const char* name = Scripting::GetEnumerationName< Layout::LineWrap::Mode >( impl.mController->GetLineWrapMode(), - LINE_WRAP_MODE_STRING_TABLE, - LINE_WRAP_MODE_STRING_TABLE_COUNT ); - if( name ) - { - value = std::string( name ); - } + value = impl.mController->GetLineWrapMode(); } } } //switch diff --git a/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp old mode 100755 new mode 100644 index e9df654..d92b1cd --- a/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp @@ -769,13 +769,7 @@ Property::Value TextLabel::GetProperty( BaseObject* object, Property::Index inde { if( impl.mController ) { - const char* name = Scripting::GetEnumerationName< Layout::LineWrap::Mode >( impl.mController->GetLineWrapMode(), - LINE_WRAP_MODE_STRING_TABLE, - LINE_WRAP_MODE_STRING_TABLE_COUNT ); - if( name ) - { - value = std::string( name ); - } + value = impl.mController->GetLineWrapMode(); } break; } -- 2.7.4