From c8031ca2a7a835d6bf2140b9c6c5740813941467 Mon Sep 17 00:00:00 2001 From: Alex Foulon Date: Tue, 22 Jun 2010 23:15:33 +0000 Subject: [PATCH] * Fix bad condition. --- python/caca/canvas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/caca/canvas.py b/python/caca/canvas.py index bbf5b7e..0e0dcd3 100644 --- a/python/caca/canvas.py +++ b/python/caca/canvas.py @@ -65,7 +65,7 @@ class Canvas(_Canvas): """ _lib.caca_create_canvas.argtypes = [ctypes.c_int, ctypes.c_int] - if pointer is not None: + if pointer is None: self._cv = _lib.caca_create_canvas(width, height) if self._cv == 0: raise CanvasError, "Failed to create canvas"