Open Fill and Stroke
Select the Fill tab
At the top right corner there are two options.
- The image with an open section will result in gaps where objects overlap.
- The shape that is solid will give a solid looking result when you apply path>combine.
A few more examples. All of them are fixed by changing the same setting.