Review Request: Fix crashing when using tools on empty image
Dmitry Kazakov
dimula73 at gmail.com
Mon Oct 31 19:42:59 GMT 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103003/#review7782
-----------------------------------------------------------
Ship it!
Thanks for the fix! =)
Just two small things:
1) I think it would be logical to reset the stroke id right after endStroke(m_strokeId) in mouseReleaseEvent() function. Like:
image->endStroke(m_strokeId);
m_strokeId.clear();
2) And we are using kde coding style for positioning braces around 'if's ;) [1]
[1] - http://techbase.kde.org/Policies/Kdelibs_Coding_Style
- Dmitry Kazakov
On Oct. 31, 2011, 7:26 p.m., Torio Mlshi wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103003/
> -----------------------------------------------------------
>
> (Updated Oct. 31, 2011, 7:26 p.m.)
>
>
> Review request for Calligra.
>
>
> Description
> -------
>
> 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
> -----
>
> 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/ce861b2f/attachment.htm>
More information about the calligra-devel
mailing list