Revert "[Tizen] fix LineWrap GET error" 90/148990/1
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 11 Sep 2017 08:51:02 +0000 (17:51 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 11 Sep 2017 08:51:05 +0000 (17:51 +0900)
This reverts commit 38e93f5825a3a705b15047f1f17e8f28a3376cf0.

Change-Id: I43294543e06548efb6ec1a329294f51de3975a36

dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp
dali-toolkit/internal/controls/text-controls/text-label-impl.cpp [changed mode: 0755->0644]

index ca6f5ab..97cdb82 100755 (executable)
@@ -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
old mode 100755 (executable)
new mode 100644 (file)
index e9df654..d92b1cd
@@ -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;
       }