[4.0] fix LineWrap GET error 56/153356/1
authorJinho, Lee <jeano.lee@samsung.com>
Thu, 28 Sep 2017 05:33:00 +0000 (14:33 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Thu, 28 Sep 2017 05:33:01 +0000 (14:33 +0900)
This reverts commit 999a1b2425bde68865ec79c05b802ad6af34fa93.

Change-Id: Iec859f2300a98b0b61120a67b79268ff94120e95

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

index 61aaba6..e8fa0ab 100755 (executable)
@@ -1116,7 +1116,13 @@ Property::Value TextEditor::GetProperty( BaseObject* object, Property::Index ind
       {
         if( impl.mController )
         {
-          value = impl.mController->GetLineWrapMode();
+          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 );
+          }
         }
       }
     } //switch
old mode 100644 (file)
new mode 100755 (executable)
index e871db3..84e648f
@@ -769,7 +769,13 @@ Property::Value TextLabel::GetProperty( BaseObject* object, Property::Index inde
       {
         if( impl.mController )
         {
-          value = impl.mController->GetLineWrapMode();
+          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 );
+          }
         }
         break;
       }