summaryrefslogtreecommitdiff
path: root/svtools/source
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-07-11 09:47:33 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-07-11 09:47:33 +0000
commitc08f88d23e664e529d9442e97d00c43089dadbc0 (patch)
treec1e694b1f834e8d9a51ea19b94490420331ad63c /svtools/source
parent7ab1c6662a5f0a9ba06785bb7cc47f7e92699d15 (diff)
INTEGRATION: CWS fwkrc3 (1.11.274); FILE MERGED
2003/07/10 10:15:00 as 1.11.274.1: #110476# dont use invalid iterator objects
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/config/historyoptions.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/svtools/source/config/historyoptions.cxx b/svtools/source/config/historyoptions.cxx
index 19988860c559..65b74eef358b 100644
--- a/svtools/source/config/historyoptions.cxx
+++ b/svtools/source/config/historyoptions.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: historyoptions.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: as $ $Date: 2001-12-07 12:30:39 $
+ * last change: $Author: vg $ $Date: 2003-07-11 10:47:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -678,10 +678,12 @@ void SvtHistoryOptions_Impl::AppendItem( EHistoryType eHistory
pList->push_front( aItem );
ConfigItem::SetModified();
}
- else
+ else if (pItem != pList->begin())
{
- pList->push_front( *pItem );
- pList->erase ( pItem );
+ IMPL_THistoryItem aTempItem = *pItem;
+ pList->erase(pItem);
+ pList->push_front(aTempItem);
+ ConfigItem::SetModified();
}
}
}