summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-08-21 15:37:51 +0200
committerCaolán McNamara <caolanm@redhat.com>2018-09-20 17:39:43 +0200
commit760d6f55c847a4ebc9b7780e4443af47cdd1367d (patch)
tree3c65a1281f1462431e546d645e861f5edf4ea7af
parentsw: fix usage of wrong string in SwUndoOverwrite::RedoImpl() (diff)
downloadcore-760d6f55c847a4ebc9b7780e4443af47cdd1367d.tar.gz
core-760d6f55c847a4ebc9b7780e4443af47cdd1367d.zip
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 (cherry picked from commit 54d627e0c2ef64a8b09bc744384f6e3dd1d29d22) Reviewed-on: https://gerrit.libreoffice.org/60747 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--svl/source/items/itemiter.cxx2
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