diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2015-03-27 04:11:53 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2015-03-30 04:34:21 +0200 |
commit | 4a9ba96520bdd6f8d40a9e92ef11b481f0d408dc (patch) | |
tree | 47b330947b48f0b36e70061246cd4559dbe640e7 /sc/source/core/data/conditio.cxx | |
parent | c40a4290193e6e16f92e3b90b76ef709db41cb9d (diff) |
implement one more method
Change-Id: I3483b2004c0afb8bea651d9eec35d1cbf9aff2a1
Diffstat (limited to 'sc/source/core/data/conditio.cxx')
-rw-r--r-- | sc/source/core/data/conditio.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx index b39d4d008696..303699955dd2 100644 --- a/sc/source/core/data/conditio.cxx +++ b/sc/source/core/data/conditio.cxx @@ -1853,6 +1853,15 @@ void ScConditionalFormat::AddEntry( ScFormatEntry* pNew ) pNew->SetParent(this); } +void ScConditionalFormat::RemoveEntry(size_t n) +{ + if (n < maEntries.size()) + { + maEntries.erase(maEntries.begin() + n); + DoRepaint(NULL); + } +} + bool ScConditionalFormat::IsEmpty() const { return maEntries.empty(); |