Browse Source

* Fix bad condition.

tags/v0.99.beta18
Alex Foulon alxf 14 years ago
parent
commit
c8031ca2a7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      python/caca/canvas.py

+ 1
- 1
python/caca/canvas.py View File

@@ -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"


Loading…
Cancel
Save