<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Wouldn&#39;t it have been nicer api to have something like:<br>

KisPaintDeviceSP tempDevice = originalDevice-&gt;createClone(interestedRect);<br clear="all"></blockquote><div><br>The point of this method is that we do not have to create a new device, so we do not need to allocate 12KiB of memory every time, but we can use an existing one. <br>
<br>I wanted to create a separate class for temporaries, like KisTemporaryPaintDevice, but Lukas didn&#39;t like this idea. <br></div></div><br>-- <br>Dmitry Kazakov<br>