make sure scene exists

Tomaz Canabrava tcanabrava at kde.org
Fri Jan 17 15:27:08 UTC 2014


it's impossible for the scene to not exists, the first time, item is NULL,
so it's not getting into the if,
the second + n times, the item is created && added to the scene RIGHT on
bottom of that method.


On Fri, Jan 17, 2014 at 8:40 PM, Dirk Hohndel <dirk at hohndel.org> wrote:

>
> I'm puzzled about the patch. You test for object->scene() to exist, but
> then in side the if-clause scene() is dereferenced
>
> Is that intentional?
>
> /D
>
> _______________________________________________
> subsurface mailing list
> subsurface at hohndel.org
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140117/6d9d6a98/attachment.html>


More information about the subsurface mailing list