Skip to content
Browse files

Merge pull request #658 from waldobronchart/master

Fixed bug with adding a Camera widget in .kv file
  • Loading branch information...
2 parents 55bc83f + 57808f4 commit df4dc66881205beae346ccb6d019051fb2ecf460 @tito tito committed Aug 31, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 kivy/uix/camera.py
View
2 kivy/uix/camera.py
@@ -96,6 +96,8 @@ def _on_index(self, *largs):
self._camera = None
if self.index < 0:
return
+ if self.resolution[0] < 0 or self.resolution[1] < 0:
+ return
self._camera = CoreCamera(index=self.index,
resolution=self.resolution, stopped=True)
self._camera.bind(on_load=self._camera_loaded)

0 comments on commit df4dc66

Please sign in to comment.
Something went wrong with that request. Please try again.