Attaching a patch file.
Thanks for the patch. I'm having some trouble applying it, unfortunately (HUNK failed messages from patch). Worst case, I'll apply it by hand this time (it's small).
Are you developing on Windows or Linux? If you're on Linux, I might suggest a different diff command, since I've had good luck with context diffs (produced with diff -cNB).
I am on windows, and use eclipse subversion (svn) plugin to create this patch.
I've just tried to apply it locally using patch command in a shell and it worked.
I suspect the problem is with end of line difference between linux and windows.
Can you please try "dos2unix pref_patch.txt" before applying it?