diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-08-21 15:37:51 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-09-19 10:18:20 +0200 |
commit | 54d627e0c2ef64a8b09bc744384f6e3dd1d29d22 (patch) | |
tree | a5e5ffca8fb0eb0e625e670a98c9d50c353ebdba /svl | |
parent | 503f07caa904ba375e390ad87640115866c3db05 (diff) |
svl: fix SfxItemIter on empty item set
The problem is that IsAtEnd { return m_nCurrent == m_nEnd; } is never
true because of the odd initialisation with m_nEnd > m_nStart.
Change-Id: I477b0f111e2c2f47fe093800710a9b28ca8a5925
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/itemiter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/items/itemiter.cxx b/svl/source/items/itemiter.cxx index 2cc6ae36212d..cbe0f2f8ed03 100644 --- a/svl/source/items/itemiter.cxx +++ b/svl/source/items/itemiter.cxx @@ -27,7 +27,7 @@ SfxItemIter::SfxItemIter( const SfxItemSet& rItemSet ) { if (!m_rSet.m_nCount) { - m_nStart = 1; + m_nStart = 0; m_nEnd = 0; } else |