summaryrefslogtreecommitdiff
path: root/sw/inc/crstate.hxx
diff options
context:
space:
mode:
authorJustin Luth <jluth@mail.com>2023-12-25 20:23:52 -0500
committerMiklos Vajna <vmiklos@collabora.com>2024-01-03 08:45:34 +0100
commite73dfbf860b977f3b862fb75a87a7ad726d9a4c7 (patch)
tree57fd897b02cf5f57e0ec0229ffefb1ad7116b87f /sw/inc/crstate.hxx
parenta01a642ebbdb8c16f1b54b4634c277b9f665192f (diff)
tdf#111969 sw: acknowledge field start/end for context menu
This fixes the right-click menu building missing out on the edit/update field option about half-a-character too soon at the end. It also fixes itrcrsr adding field actions to the menu half-a-char too soon in the edge case of a 1-len portion. This edge case is not limited to fields - it fixes it for redlines (and hyperlinks if other bugs are fixed). make CppunitTest_sw_uiwriter9 CPPUNIT_TEST_NAME=testTdf111969 Change-Id: I469ec75d18d4dce0bb62ebb63b661b60e35f9e1b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161295 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'sw/inc/crstate.hxx')
-rw-r--r--sw/inc/crstate.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/crstate.hxx b/sw/inc/crstate.hxx
index acf13bfe45d7..018106514714 100644
--- a/sw/inc/crstate.hxx
+++ b/sw/inc/crstate.hxx
@@ -139,7 +139,7 @@ struct SwCursorMoveState
sal_uInt8 m_nCursorBidiLevel;
bool m_bStop;
bool m_bRealHeight; ///< should the real height be calculated?
- bool m_bFieldInfo; ///< should be fields recognized?
+ bool m_bFieldInfo; ///< should fields be recognized? (get position of field start)
bool m_bPosCorr; ///< Point had to be corrected
bool m_bFootnoteNoInfo; ///< recognized footnote numbering
bool m_bExactOnly; /**< let GetModelPositionForViewPoint look for exact matches only,
@@ -151,7 +151,7 @@ struct SwCursorMoveState
bool m_bNoScroll; ///< No scrolling of undersized textframes
bool m_bPosMatchesBounds; /**< GetModelPositionForViewPoint should not return the next
position if screen position is inside second
- have of bound rect */
+ half of bound rect */
bool m_bContentCheck; // #i43742# Cursor position over content?