AccessibleNode: fix return value for setValue 48/276148/3
authorHosang Kim <hosang12.kim@samsung.com>
Fri, 10 Jun 2022 05:47:00 +0000 (14:47 +0900)
committerwoochan lee <wc0917.lee@samsung.com>
Wed, 22 Jun 2022 11:11:56 +0000 (11:11 +0000)
Change-Id: Ib82f74c691fb830617b85ac469df9df251a01c2e

libaurum/src/Impl/Accessibility/AtspiAccessibleNode.cc

index d0b88d1c18b0d2f142ccaf95e6c795a9765f8100..5d9e922ebc6966b0c0934267f944724029b8c524 100644 (file)
@@ -440,11 +440,11 @@ bool AtspiAccessibleNode::setValue(std::string text)
     updateName();
     int len = getText().length();
     AtspiWrapper::Atspi_editable_text_delete_text(iface, 0, len, NULL);
-    AtspiWrapper::Atspi_editable_text_insert_text(iface, 0, text.c_str(), text.length(),
-                                                  NULL);
+    bool ret = AtspiWrapper::Atspi_editable_text_insert_text(iface, 0, text.c_str(), text.length(),
+                                                             NULL);
     g_object_unref(iface);
 
-    return true;
+    return ret;
 }
 
 bool AtspiAccessibleNode::setValue(double value)