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
This commit is contained in:
Michael Stahl 2018-08-21 15:37:51 +02:00
parent 503f07caa9
commit 54d627e0c2

View file

@ -27,7 +27,7 @@ SfxItemIter::SfxItemIter( const SfxItemSet& rItemSet )
{
if (!m_rSet.m_nCount)
{
m_nStart = 1;
m_nStart = 0;
m_nEnd = 0;
}
else