(related: tdf#134252) sw: fix assert when moving mouse pointer
commitff7414388cddcf4b1d4284b1376e72b976f052c8
authorMichael Stahl <Michael.Stahl@cib.de>
Wed, 29 Jul 2020 12:55:49 +0000 (29 14:55 +0200)
committerAndras Timar <andras.timar@collabora.com>
Sun, 2 Aug 2020 08:33:14 +0000 (2 10:33 +0200)
tree93dad6f365f8e08ce44f087539b139b1037387f8
parent954a0f6aacc85a0897fdd3625c14953deb9bdbf6
(related: tdf#134252) sw: fix assert when moving mouse pointer

SwPageFrame::GetModelPositionForViewPoint() was calling GetCharRect() on
a frame that doesn't match the passed prevTextPos; it was supposed to be
initialised by GetModelPositionForViewPoint() call but that didn't work
because the point was outside the frame so nothing was inited.

(regression from edd2db1c783bd571ff796a5298385cacc91877b9)

Change-Id: Ic064c3efc1b7f29d18d713206e5ea5ac0b67fbc8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99692
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
(cherry picked from commit 63308aa3b109271ffb4fd47e9fea2e3281a1552d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99780
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
sw/source/core/layout/trvlfrm.cxx