c13a109 Improve pane position saving cod...

based on: http://github.com/torvalds/subsurface/commit/c13a10986e3fbdd8269db5ebfc7a33ad5326d2cb

compiled with: mingw 3.4.5

notes:
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>