summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2014-09-30 12:49:00 +0200
committerLuboš Luňák <l.lunak@collabora.com>2014-10-03 18:28:10 +0200
commit540243834390256f0a1dd968ff02860fda07edcf (patch)
tree073f0547a4cb457e828093dc265f2155fcb084f0 /sw
parenta3b154ab0262e39497e788917085708ec645eae6 (diff)
SfxItemSet ranges are inclusive
This used to skip the last item in the range. Change-Id: Icf27a041f1388c8bd01568356d1009a08e5b7a7a
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/docnew.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx
index 2521962c12d6..7701873f32a5 100644
--- a/sw/source/core/doc/docnew.cxx
+++ b/sw/source/core/doc/docnew.cxx
@@ -862,7 +862,7 @@ void SwDoc::ReplaceDefaults(const SwDoc& rSource)
while (aRangeOfDefaults[nRange] != 0)
{
for (sal_uInt16 nWhich = aRangeOfDefaults[nRange];
- nWhich < aRangeOfDefaults[nRange + 1]; ++nWhich)
+ nWhich <= aRangeOfDefaults[nRange + 1]; ++nWhich)
{
const SfxPoolItem& rSourceAttr =
rSource.mpAttrPool->GetDefaultItem(nWhich);