mirror of
				https://github.com/bspeice/libcvautomation
				synced 2025-11-03 18:00:43 -05:00 
			
		
		
		
	Fix the order of some logic, and fix the eval syntax
This commit is contained in:
		@ -122,19 +122,19 @@ int main( int argc, char** argv )
 | 
			
		||||
				cvaPoint returnPoint;
 | 
			
		||||
				returnPoint = xte_commandString( display, optarg, mouseButton, searchMethod, tolerance, timeout );
 | 
			
		||||
 | 
			
		||||
				if (returnPoint.x != -1 && returnPoint.y != -1)
 | 
			
		||||
				{
 | 
			
		||||
					printf("%s%s%i%s%i\n", optarg, separator, returnPoint.x, separator, returnPoint.y);
 | 
			
		||||
					returnCode = 0;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				else if (returnPoint.x == -2 && returnPoint.y == -2)
 | 
			
		||||
				if (returnPoint.x == -2 && returnPoint.y == -2)
 | 
			
		||||
				{
 | 
			
		||||
					/* Not an error, just that the command didn't use returnPoint */
 | 
			
		||||
					printf("%s\n", optarg);
 | 
			
		||||
					returnCode = 0;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				else if (returnPoint.x != -1 && returnPoint.y != -1)
 | 
			
		||||
				{
 | 
			
		||||
					printf("%s%s%i%s%i\n", optarg, separator, returnPoint.x, separator, returnPoint.y);
 | 
			
		||||
					returnCode = 0;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				break;
 | 
			
		||||
 | 
			
		||||
			case 'o':
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user