summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/editsrc.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-06-01 18:12:54 +0000
committerNiklas Nebel <nn@openoffice.org>2001-06-01 18:12:54 +0000
commitc90662de413bbb44eaca9435771e338659fa12a2 (patch)
treede52e2fa344c08f075342697e26001bc4752ae68 /sc/source/ui/unoobj/editsrc.cxx
parentd0a5150115111d4372407906fa196c351977ce9d (diff)
#78966# call FreezeIdRanges for edit engine pool
Diffstat (limited to 'sc/source/ui/unoobj/editsrc.cxx')
-rw-r--r--sc/source/ui/unoobj/editsrc.cxx22
1 files changed, 15 insertions, 7 deletions
diff --git a/sc/source/ui/unoobj/editsrc.cxx b/sc/source/ui/unoobj/editsrc.cxx
index 1df97cbade69..589ea60c81b7 100644
--- a/sc/source/ui/unoobj/editsrc.cxx
+++ b/sc/source/ui/unoobj/editsrc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: editsrc.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: nn $ $Date: 2001-02-15 18:07:09 $
+ * last change: $Author: nn $ $Date: 2001-06-01 19:12:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -141,7 +141,9 @@ SvxTextForwarder* ScHeaderFooterEditSource::GetTextForwarder()
{
if (!pEditEngine)
{
- ScHeaderEditEngine* pHdrEngine = new ScHeaderEditEngine( EditEngine::CreatePool(), TRUE );
+ SfxItemPool* pEnginePool = EditEngine::CreatePool();
+ pEnginePool->FreezeIdRanges();
+ ScHeaderEditEngine* pHdrEngine = new ScHeaderEditEngine( pEnginePool, TRUE );
pHdrEngine->EnableUndo( FALSE );
pHdrEngine->SetRefMapMode( MAP_TWIP );
@@ -253,8 +255,11 @@ SvxTextForwarder* ScCellEditSource::GetTextForwarder()
pDoc->GetEditPool(), FALSE );
}
else
- pEditEngine = new ScFieldEditEngine( EditEngine::CreatePool(),
- NULL, TRUE );
+ {
+ SfxItemPool* pEnginePool = EditEngine::CreatePool();
+ pEnginePool->FreezeIdRanges();
+ pEditEngine = new ScFieldEditEngine( pEnginePool, NULL, TRUE );
+ }
#if SUPD > 600
// currently, GetPortions doesn't work if UpdateMode is FALSE,
// this will be fixed (in EditEngine) by src600
@@ -380,8 +385,11 @@ SvxTextForwarder* ScAnnotationEditSource::GetTextForwarder()
pEditEngine = new ScEditEngineDefaulter(
pDocShell->GetDocument()->GetEnginePool(), FALSE );
else
- pEditEngine = new ScEditEngineDefaulter(
- EditEngine::CreatePool(), TRUE );
+ {
+ SfxItemPool* pEnginePool = EditEngine::CreatePool();
+ pEnginePool->FreezeIdRanges();
+ pEditEngine = new ScEditEngineDefaulter( pEnginePool, TRUE );
+ }
pForwarder = new SvxEditEngineForwarder(*pEditEngine);
}