Resolves: #i123979# treat application of new position due to...

content frame without height to next/previous content frame as restore to saved
position, if new position equals the saved one.

This avoid cursor traveling loops due to hidden content at the beginning/end of
the text document.

(cherry picked from commit 83510855eff12832682adfb0c1093ccb5cfc7b13)

Conflicts:
	sw/source/core/crsr/swcrsr.cxx

Change-Id: Ie8b6b80e9445d711bfce2143199c49ee238ce23e
coverity#704673 Dereference after null check

Change-Id: I6302c2b8c721e7b2e2c640d905a0c95ee4ba711d
coverity#704747 Dereference after null check

Change-Id: I1da494393c3a1a697bf31b00f57b33a03c674872
coverity#704748 Dereference after null check

Change-Id: I4dd13cb4a39422b26d4e695c1fbb739eaee96368
coverity#704749 Dereference after null check

Change-Id: Id74676712afb4753c9e2b1a81043190451b90f01
coverity#704754 Dereference after null check

Change-Id: I3c70c9cfe84dc74836cf733e424cf7c2cd195c4f
coverity#704755 Dereference after null check

Change-Id: I887a3ce81b2eea878b98e5567a6faf4aa8df4ebe
coverity#704760 Dereference after null check

Change-Id: I16a1b9803eb4cbd6ce77c9017262093908261097
coverity#704761 Dereference after null check

Change-Id: I8e65332f202158e503da9b707bb9d6305133e68e
coverity#704762 Dereference after null check

Change-Id: I28555dcf30eb3a6f71b3808025771294a088aaa8
coverity#704763 Dereference after null check

Change-Id: I7d78ef1ffc939602baf9a16c4ca18b8f5f4c4d48
coverity#704764 Dereference after null check

Change-Id: I93ae20005c3d4dbe0b85a4ae79eba683c7355c88
coverity#735945 Dereference after null check

Change-Id: I960f91ad25036f39d173fdcd9425cd2196eaa11e
coverity#735944 Dereference after null check

Change-Id: I2123943de85d80127042a5b3e8f5b0c1b2b4f288
coverity#735941 Dereference after null check

Change-Id: Ic4b27068cb3dc359ec24d4af12c64585a3a3f09a
coverity#982309 Logically dead code

Change-Id: Id05614cf8c90d1c845876e8a6592df8420d57d47
crash indexing -1

Change-Id: Ia339bed9bad3b43ec1e4ea813646cab81cf3a619