Shape tools create new shape layers: Bug 299844

Sven Langkamp sven.langkamp at gmail.com
Tue Jul 3 20:07:22 UTC 2012


On Tue, Jul 3, 2012 at 9:07 PM, Michael O'Sullivan
<francium.duck at gmail.com>wrote:

> Hello!
>
> I'm very impressed with Krita, and would like to contribute. I've only
> started looking at the source code today though, and I'm now feeling
> rather stupid.
>
> The scratch I'd like to itch is the following bug:
> Bug 299844 - using a shape tool creates new shape layer even if shape
> layer selected
> https://bugs.kde.org/show_bug.cgi?id=299844
>
> I've found that the "draw a path" and "draw straight line with current
> brush" tools don't seemed to be influenced by this bug, so I was
> hoping to compare and contrast the implementations of these tools with
> those of the ellipse and rectangle shape tools. The only problem is,
> I'm not sure which files the "draw a path" and "draw straight line
> with current brush" tools are implemented in the krita/ui/tools
> directory. Can anyone point me in the right direction?
>
>
Welcome!

krita/ui/tools are just the base classes for tools. The specific tools are
under krita/plugins/tools.
The line and path tool are under krita/plugins/tools/defaulttools
kis_tool_line and kis_tool_path

You might also have a look at ui/kis_shape_controller.cpp there is a method
addShape that adds the new shape layer.

If you have questions you can also ask in the Krita IRC channel #krita on
irc.freenode.net

Good luck!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20120703/797d6fd0/attachment.html>


More information about the kimageshop mailing list