Good spot. Should be fixed in https://gitorious.org/mypaint/mypaint/commit/607ca81 - I'm still migrating some parts of the code to the new layers stack implementation, as you'll see from various deprecation warnings.
On 15 March 2014 13:20, José Américo Gobbo <[email protected]> wrote: > Hi all, > I've some problems to edit the brush icons, when you try edit an icon > MyPaint has this problem: > > Exception while analyzing the exception. > Traceback (most recent call last): > File "/home/jag/installs/mypaint-git-master/gui/drawwindow.py", line 396, > in toggle_window_cb > window = self.app.get_subwindow(action_name) > File "/home/jag/installs/mypaint-git-master/gui/application.py", line 757, > in get_subwindow > window = window_class() > File "/home/jag/installs/mypaint-git-master/gui/brushiconeditor.py", line > 44, in __init__ > self._editor = BrushIconEditor() > File "/home/jag/installs/mypaint-git-master/gui/brushiconeditor.py", line > 102, in __init__ > self._init_widgets() > File "/home/jag/installs/mypaint-git-master/gui/brushiconeditor.py", line > 191, in _init_widgets > self._set_preview_pixbuf(preview) > File "/home/jag/installs/mypaint-git-master/gui/brushiconeditor.py", line > 333, in _set_preview_pixbuf > self._tdw.doc.load_from_pixbuf(pixbuf) > File "/home/jag/installs/mypaint-git-master/lib/document.py", line 853, in > load_from_pixbuf > self.clear() > File "/home/jag/installs/mypaint-git-master/lib/document.py", line 399, in > clear > self._layers.clear() > File "/home/jag/installs/mypaint-git-master/lib/layer.py", line 1099, in > clear > self.set_background(self._default_background) > File "/home/jag/installs/mypaint-git-master/lib/layer.py", line 1406, in > set_background > self._doc.invalidate_all() > File "/home/jag/installs/mypaint-git-master/lib/document.py", line 656, in > invalidate_all > f(0, 0, 0, 0) > File "/home/jag/installs/mypaint-git-master/gui/brushiconeditor.py", line > 217, in _preview_modified_cb > self._update_widgets() > File "/home/jag/installs/mypaint-git-master/gui/brushiconeditor.py", line > 310, in _update_widgets > self._model.layer.locked = not (valid and editing) > File "/home/jag/installs/mypaint-git-master/lib/document.py", line 170, in > layer > return self._layers.current > File "/home/jag/installs/mypaint-git-master/lib/layer.py", line 1369, in > get_current > assert layer is not None > AssertionError > > _______________________________________________ > Mypaint-discuss mailing list > [email protected] > https://mail.gna.org/listinfo/mypaint-discuss > -- Andrew Chadwick _______________________________________________ Mypaint-discuss mailing list [email protected] https://mail.gna.org/listinfo/mypaint-discuss
