From d42a3d131d370e25e4c07e52c74593751a090c1f Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Tue, 24 Jul 2012 16:11:11 -0400 Subject: [PATCH] Fix a mistake where cmouseimage didn't return a proper value --- libcvautomation/libcvautomation-xtest.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libcvautomation/libcvautomation-xtest.c b/libcvautomation/libcvautomation-xtest.c index 1fe1ff3..6cf856c 100644 --- a/libcvautomation/libcvautomation-xtest.c +++ b/libcvautomation/libcvautomation-xtest.c @@ -915,11 +915,9 @@ cvaPoint xte_commandString ( Display *displayLocation, char *commandString, int fileName = malloc(COMMAND_STR_LEN * sizeof(char)); sscanf( s_commandString, "cmouseimage %s", fileName ); - xte_hoverMouseImage_location_center( displayLocation, fileName, searchMethod, tolerance ); + resultPoint = xte_hoverMouseImage_location_center( displayLocation, fileName, searchMethod, tolerance ); free(fileName); - - resultPoint.x = resultPoint.y = -2; } else if (IS_CMD( s_commandString, "imouseclick" )) {