summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2000-12-01 08:57:10 +0000
committerOliver Specht <os@openoffice.org>2000-12-01 08:57:10 +0000
commit48c99f4e3eeb576d028ee86b0d1c46a97abdaba1 (patch)
tree5a6d5d6b2041ab8cf8337b2705e1066fca0c1a97 /sw
parent0714d74831570a8c5e2d00f44f694aa25859ec75 (diff)
#80616# create bibliography field type if necessary
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unofield.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index 31a7b36d13bc..a6de00345a6f 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unofield.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: os $ $Date: 2000-11-22 16:49:53 $
+ * last change: $Author: os $ $Date: 2000-12-01 09:57:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2133,6 +2133,13 @@ void SwXTextField::attachToRange(
case SW_SERVICE_FIELDTYPE_BIBLIOGRAPHY:
{
SwFieldType* pFldType = pDoc->GetFldType(RES_AUTHORITY, aEmptyStr);
+ if(!pFldType)
+ {
+ pFldType =
+ (SwAuthorityFieldType*)pDoc->InsertFldType(
+ SwAuthorityFieldType(pDoc));
+ }
+
pFld = new SwAuthorityField((SwAuthorityFieldType*)pFldType, aEmptyStr);
if(m_pProps->aPropSeq.getLength())
{