Review Request: Fix crashing when using tools on empty image

Torio Mlshi mlshi at lavabit.com
Mon Oct 31 19:26:56 GMT 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103003/
-----------------------------------------------------------

Review request for Calligra.


Summary (updated)
-----------------

Fix crashing when using tools on empty image


Description (updated)
-------

When image is empty (has no layers), color picker & move tools caused crashes when using. This patch adds checking if currentNode() returns 0. If so, no action is done.


Diffs (updated)
-----

  krita/plugins/tools/defaulttools/kis_tool_colorpicker.cc 006aa78 
  krita/plugins/tools/defaulttools/kis_tool_move.cc 1ee0baa 

Diff: http://git.reviewboard.kde.org/r/103003/diff/diff


Testing
-------


Thanks,

Torio Mlshi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20111031/ee8d5a72/attachment.htm>


More information about the calligra-devel mailing list