[Sumover-dev] [svn commit] r3819 - vic/trunk/codec

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Thu Sep 7 18:48:48 BST 2006


Author: ucacsva
Date: Thu Sep  7 18:48:27 2006
New Revision: 3819

Modified:
   vic/trunk/codec/compositor.cpp

Log:
Handle another overlay error gracefully.

Modified: vic/trunk/codec/compositor.cpp
==============================================================================
--- vic/trunk/codec/compositor.cpp	(original)
+++ vic/trunk/codec/compositor.cpp	Thu Sep  7 18:48:27 2006
@@ -151,8 +151,10 @@
 			const char* file = argv[2];
 			int w = atoi(argv[3]);
 			int h = atoi(argv[4]);
-			if (load(file, w, h) < 0)
-				tcl.result("-1");
+			if (load(file, w, h) < 0) {
+				tcl.result("overlay load() returned negative");
+				return (TCL_ERROR);
+			}
 			else
 				tcl.result("0");
 			return (TCL_OK);



More information about the Sumover-dev mailing list