When using cancel package to cross out something and the package diagbox is also loaded the line does not appear in the proper location. When diagbox is not loaded everything works ok. However, I need to load that package to use it with some cells in tables.
The diagbox package internally loads pict2e which does some redefinitions that cause the problem with cancel; to prevent the redefinitions made by pict2e, load the pict2e package with the original option before diagbox: