[bt-devel] Serious personal commentary overwrite bug - FIXED
Jaak Ristioja
Ristioja at gmail.com
Fri Mar 4 13:14:57 MST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04.03.2011 07:13, Gary Holmlund wrote:
> Jaak,
>
> I found some more problems with the Personal Commentary saving. I have
> fixed them and checked them into the master and stable-2.8 branches.
>
> It all related to methods of changing the Bible verse reference key
> (CSwordVerseKey). There are several ways it can change:
> 3 drop tabs (Book, Chapter, Verse)
> 3 next arrows (Book, Chapter, Verse)
> 3 previous arrows (Book, Chapter, Verse)
> Forward and backward history
> Direct entry in toolbar
> Drop of bookmark
> Synchronized commentary change with Bible change
>
> Each of these methods has a slightly different way of signaling before
> and after key changes. This part of the code is a mess. I believe I have
> the problems fixed and a release of stable-2.8 is ok. I believe I can
> cleanup and simplify the code doing key changes and will probably
> continue working on that in the master branch.
Great!
> PS. Why do we format code so it looks like this:
> if (expr) return;
>
> I can't set a breakpoint on the return. It should be done like this:
> if (expr)
> return;
Good point! I've never thought about this before. Having the return
statement on the same line means less lines-of-code and looks prettier
in some cases. But of course this doesn't outweigh your debugging
argument. For me personally, the harder part is to remember to code like
that, but I'll try. :)
God bless!
Jaak
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
iQgcBAEBAgAGBQJNcUg9AAoJEHeFv6jk2xWmDnxAAJKnLghx3eO6ENBxcLjZW17f
UMF/A1g+fzbjANV6jy0SxPohc0smCIzah2mPniexSQ3Kt7HmyzaSZ30YjyYxmZ4d
6ue2RmNRu14t7eocGVXccfg1iEJaLJHI6iDuhblHsMabRV6BHLKC1khVbTPPtZHV
fG26mUHO8owtI9ZPJIKLnWN1iJsby+CbEZ3Fm0+BzhXibeQIHUDdp/D3zA3VP1be
hVRbHJX4f61d+SzXzebv9Pwc+SE7k9HiXVKtAl4I6zCWmpH0vec3fl/MDWf2jael
aCYwYvj/FF8WXxZ8WC0IjRDZQzvlg++G/UpCtOeaS/yCz7CqkufWt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