diff options
author | Oliver Specht <os@openoffice.org> | 2002-11-15 10:17:38 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2002-11-15 10:17:38 +0000 |
commit | 2642352cae8e2adca845825cf65c2a98f5be24ba (patch) | |
tree | 1fcf439e224dc89d1aad764d1cdeb503ec718f5a /sw/source/ui/fldui/fldtdlg.cxx | |
parent | ef6790486f1e73a0ae2c33ebd6617813c8115b75 (diff) |
#103096# optionally apply fixed (no language dependence) number format to text fields
Diffstat (limited to 'sw/source/ui/fldui/fldtdlg.cxx')
-rw-r--r-- | sw/source/ui/fldui/fldtdlg.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sw/source/ui/fldui/fldtdlg.cxx b/sw/source/ui/fldui/fldtdlg.cxx index c171b6bb51cd..d5aa6111173c 100644 --- a/sw/source/ui/fldui/fldtdlg.cxx +++ b/sw/source/ui/fldui/fldtdlg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fldtdlg.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: jp $ $Date: 2001-09-20 12:49:58 $ + * last change: $Author: os $ $Date: 2002-11-15 11:12:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -388,7 +388,10 @@ void SwFldDlg::ReInitDlg() Close(); } - const SwWrtShell& rSh = ::GetActiveView()->GetWrtShell(); + SwView* pActiveView = ::GetActiveView(); + if(!pActiveView) + return; + const SwWrtShell& rSh = pActiveView->GetWrtShell(); GetOKButton().Enable( !rSh.IsReadOnlyAvailable() || !rSh.HasReadonlySel() ); |