summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-08-16 13:43:49 +0300
committerTor Lillqvist <tml@collabora.com>2017-08-16 15:22:03 +0300
commit11a8360087452c1599a392a211646dc1b6fc63cd (patch)
tree56cbcbca9684d6cb2ba66f29647dab2cb4a3c640 /sc
parent2bb282656a19a399a101dbeadf157d10d4d5e4f4 (diff)
Add note about order or row, column, and tab as fields vs. parameters
Change-Id: I45e0f9a95da20c1a3b6bdf2ac1387b3c14e3dad4
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/address.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx
index 3aab8862ecbd..e8c0092e14dc 100644
--- a/sc/inc/address.hxx
+++ b/sc/inc/address.hxx
@@ -1,4 +1,4 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column:100 -*- */
/*
* This file is part of the LibreOffice project.
*
@@ -187,6 +187,11 @@ inline void applyStartToEndFlags(ScRefFlags &target)
class SAL_WARN_UNUSED ScAddress
{
private:
+ // Even if the fields are in the order "row, column, tab", in all (?) the ScAddress and
+ // ScDocument APIs that take separate row, column, and tab parameters, the parameters are in the
+ // order "column, row, tab", which matches the most common (A1) address syntax, if you ignore
+ // the sheet (tab). Don't let this confuse you, like it confused me for a while.
+
SCROW nRow;
SCCOL nCol;
SCTAB nTab;