[Tizen] fix LineWrap GET error 25/143725/1
authordongsug.song <dongsug.song@samsung.com>
Fri, 11 Aug 2017 05:39:16 +0000 (14:39 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Fri, 11 Aug 2017 05:39:16 +0000 (14:39 +0900)
Change-Id: Ic56f709f447947c802c39fdec42778f23313db49
Signed-off-by: dongsug.song <dongsug.song@samsung.com>
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 97cdb82..ca6f5ab 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 a6fa7ea..f8265f6
@@ -757,7 +757,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;
       }