summaryrefslogtreecommitdiff
path: root/sc/source/core/data/types.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2017-05-01 19:43:16 -0400
committerKohei Yoshida <libreoffice@kohei.us>2017-05-03 02:36:51 +0200
commit93f5cb55349e6de5003182462bfee434dc51f6ad (patch)
tree5c2366da342a93fce034ada2ad7a497610a87c27 /sc/source/core/data/types.cxx
parent6d424f07701bf26d8fb173563b567d5f097c33e2 (diff)
tdf#107255: detect whether the range has only one data cell.
Change-Id: I030961d9d38b092ffdc966baa10decae0c2d070d Reviewed-on: https://gerrit.libreoffice.org/37178 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc/source/core/data/types.cxx')
-rw-r--r--sc/source/core/data/types.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/core/data/types.cxx b/sc/source/core/data/types.cxx
index 199819ea7506..6146f77b28ef 100644
--- a/sc/source/core/data/types.cxx
+++ b/sc/source/core/data/types.cxx
@@ -22,6 +22,13 @@ bool RangeMatrix::isRangeValid() const
mnCol1 <= mnCol2 && mnRow1 <= mnRow2 && mnTab1 <= mnTab2;
}
+MultiDataCellState::MultiDataCellState() :
+ meState(StateType::Invalid),
+ mnCol1(-1), mnRow1(-1), mnTab1(-1) {}
+MultiDataCellState::MultiDataCellState( StateType eState ) :
+ meState(eState),
+ mnCol1(-1), mnRow1(-1), mnTab1(-1) {}
+
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */