[Tizen] fix LineWrap GET error 78/147078/1
authorHeeyong Song <heeyong.song@samsung.com>
Fri, 1 Sep 2017 01:30:29 +0000 (10:30 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Fri, 1 Sep 2017 01:30:37 +0000 (10:30 +0900)
Change-Id: I6a11447cf6ddd06f911fcb19bf50aebf6a07ff3f

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 d92b1cd..e9df654
@@ -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;
       }