GPS icon [was: Re: Plans [was: Re: Gconf or GSettings? - leading to a wider question]]

Dirk Hohndel dirk at hohndel.org
Tue Jan 22 21:03:29 PST 2013


Linus Torvalds <torvalds at linux-foundation.org> writes:

> On Tue, Jan 22, 2013 at 8:37 PM, Linus Torvalds
> <torvalds at linux-foundation.org> wrote:
>>
>> The obvious fix to check for
>>
>>         if (dive && (dive->latitude.udeg || dive->longitude.udeg))
>>
>> instead, and that fixes it.
>
> Actually, do
>
>         if (dive && dive_has_location(dive))
>
> instead. Prettier that way,

Too late. Send a patch.

/D


More information about the subsurface mailing list