sw/inc/pam.hxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 0c96a9ef657b12bcba6ae821b8703b433711b74b
Author:     Miklos Vajna <[email protected]>
AuthorDate: Mon Jul 25 20:16:43 2022 +0200
Commit:     Miklos Vajna <[email protected]>
CommitDate: Tue Jul 26 08:18:14 2022 +0200

    sw: extend SwPaM documentation
    
    Explain which one stays and which one moves while adjusting a selection.
    
    Change-Id: I05ed0a376c1e75808f39a2683345ba389a83af3d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137443
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx
index 68282d98ca4e..8f72eb0452e3 100644
--- a/sw/inc/pam.hxx
+++ b/sw/inc/pam.hxx
@@ -137,7 +137,12 @@ bool GoInContentCells( SwPaM&, SwMoveFnCollection const &);
 bool GoInContentSkipHidden( SwPaM&, SwMoveFnCollection const &);
 bool GoInContentCellsSkipHidden( SwPaM&, SwMoveFnCollection const &);
 
-/// PaM is Point and Mark: a selection of the document model.
+/**
+ * PaM is Point and Mark: a selection of the document model.
+ *
+ * The reason for the distinction is that the point moves around during 
adjusting the selection with
+ * shift-arrow keys, while the mark remains where it is.
+ */
 class SAL_WARN_UNUSED SW_DLLPUBLIC SwPaM : public sw::Ring<SwPaM>
 {
     SwPosition   m_Bound1;

Reply via email to