summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2000-09-29 07:29:06 +0000
committerOcke Janssen <oj@openoffice.org>2000-09-29 07:29:06 +0000
commitcbc386f777a4a221277384073cedf5910528aefc (patch)
tree815a2e9df0f518b53dd8f0ecd579c39b2bca989a /svx
parent83debbac5d8c3871bd5ac44abc99677cdf148ac5 (diff)
#73832# togleAutoFields only when view exists
Diffstat (limited to 'svx')
-rw-r--r--svx/source/form/fmctrler.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/form/fmctrler.cxx b/svx/source/form/fmctrler.cxx
index 9ddb1b88970c..4d3c9e067ae2 100644
--- a/svx/source/form/fmctrler.cxx
+++ b/svx/source/form/fmctrler.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fmctrler.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: oj $ $Date: 2000-09-29 08:26:16 $
+ * last change: $Author: oj $ $Date: 2000-09-29 08:29:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1957,7 +1957,7 @@ IMPL_LINK(FmXFormController, OnLoad, void*, EMPTYARG)
startListening();
// just one exception toggle the auto values
- if (m_bCurrentRecordNew)
+ if (m_bCurrentRecordNew && m_pView)
toggleAutoFields(sal_True);
return 1L;
@@ -2005,7 +2005,7 @@ void FmXFormController::unload() throw( RuntimeException )
}
// be sure not to have autofields
- if (m_bCurrentRecordNew)
+ if (m_bCurrentRecordNew && m_pView)
toggleAutoFields(sal_False);
if (m_bDBConnection && isListeningForChanges())