Revert "[Tizen] fix LineWrap GET error" 64/147064/1
authorHeeyong Song <heeyong.song@samsung.com>
Fri, 1 Sep 2017 01:15:46 +0000 (10:15 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Fri, 1 Sep 2017 01:15:49 +0000 (10:15 +0900)
This reverts commit 0af42dace23175f1fd60acafd110b8df92faef37.

Change-Id: I357386b182b90bc1eb3444350dab32ad326e0106

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 f8265f6..a6fa7ea
@@ -757,13 +757,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;
       }