[Libreoffice-commits] core.git: sc/inc

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu May 16 13:15:41 UTC 2019


 sc/inc/markarr.hxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 1489aa7467a2131e48d2995107d1415d9e59ea9e
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed May 15 09:12:54 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu May 16 15:14:59 2019 +0200

    document ScMarkArray a little
    
    because it took a loooong time staring at the code to figure it out
    
    Change-Id: Ia8f3b835cd7d18737e4b0ffe1aa67ad001822d82
    Reviewed-on: https://gerrit.libreoffice.org/72395
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sc/inc/markarr.hxx b/sc/inc/markarr.hxx
index d30168d0471e..54059fcbb04a 100644
--- a/sc/inc/markarr.hxx
+++ b/sc/inc/markarr.hxx
@@ -31,6 +31,11 @@ struct ScMarkEntry
     bool            bMarked;
 };
 
+/**
+  This is a rather odd datastructure. We store alternating marked/not-marked entries,
+  and for each entry the range is defined as :
+      [previousEntry.nRow+1, currentEntry.nRow]
+*/
 class ScMarkArray
 {
     SCSIZE                            nCount;


More information about the Libreoffice-commits mailing list