in findobj if path containts \, use old process 66/13966/3
Antoine ELIAS [Mon, 10 Mar 2014 17:44:40 +0000 (18:44 +0100)]
Change-Id: I8bcbab52ec55cfa3a2598cf3dc7e25267b5a46c0

scilab/modules/gui/macros/findobj.sci

index 7df8a11..b26445c 100644 (file)
@@ -17,10 +17,14 @@ function h =  findobj(propertyName, propertyValue)
 
     if rhs == 1 then
         h = get(propertyName);
-        return;
+        if h <> [] then
+            return;
+        end
     elseif strcmpi(propertyName, "tag") == 0 then
         h = get(propertyValue);
-        return;
+        if h <> [] then
+            return;
+        end
     end
 
     // Return value