Gimp 2.99 gimp_pdb_dump_to_file fails line 378 G_IS_FILE(pdb) should be G_IS_FILE(file)
GIMP version: 2.99 pulled a few days ago
Operating System: Ubuntu 19.10
Package: self built
Description of the bug
Calling gimp_pdb_dump_to_file yields error from G_IS_FILE assertion at line 378.
Reproduction
From Python plugin I called Gimp.get_pdb().dump_to_file(... a GFile)
Is the bug reproducible? Always
Expected result: pdb dumped
Actual result: pdb not dumped
Additional information
I think the fix is: G_IS_FILE(pdb) => G_IS_FILE(file) I.E. the code is testing the wrong parameter 'pdb', it should test the parameter 'file'. I have tested the fix, it seems to work. I would submit a pull request, except I have not done so before. Let me know if you prefer a pull request.