summaryrefslogtreecommitdiff
path: root/sw/inc/crstate.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-08-28 14:16:38 +0200
committerMichael Stahl <mstahl@redhat.com>2013-08-28 14:47:34 +0200
commitedd2db1c783bd571ff796a5298385cacc91877b9 (patch)
tree9b68528f49ae524a4a0bdd9eaa59dad7f529924a /sw/inc/crstate.hxx
parentcafff1bbc4effac74bbd2607fb83dd2547c8fa2e (diff)
fdo#66215: sw: fix clicking on text above background fly
SwPageFrm::GetCrsrOfst() tries to compare the distance to the closest text vs. fly but does not do it right because GetCharRect() returns just a line of width 1 on the left edge of the character; try to figure out the entire area covered by the character via 2 calls to GetCrsrOfst(), which gives much better clickability. (regression from e8fbe97900f13305b17015d9044993bde4adab36) Change-Id: I825e86daf65692dfb962ad576772c5f543d02d19
Diffstat (limited to 'sw/inc/crstate.hxx')
-rw-r--r--sw/inc/crstate.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/crstate.hxx b/sw/inc/crstate.hxx
index 6c8c86f6c6a1..7bd3cb4b5c4b 100644
--- a/sw/inc/crstate.hxx
+++ b/sw/inc/crstate.hxx
@@ -143,7 +143,7 @@ struct SwCrsrMoveState
sal_Bool bRealWidth; ///< Calculation of the width required
sal_Bool b2Lines; ///< Check 2line portions and fill p2Lines
sal_Bool bNoScroll; ///< No scrolling of undersized textframes
- sal_Bool bPosMatchesBounds; /**< GetCrsrOfst should not return the next
+ bool bPosMatchesBounds; /**< GetCrsrOfst should not return the next
position if screen position is inside second
have of bound rect */