diff options
author | Hans-Joachim Lankenau <hjs@openoffice.org> | 2003-08-19 10:59:00 +0000 |
---|---|---|
committer | Hans-Joachim Lankenau <hjs@openoffice.org> | 2003-08-19 10:59:00 +0000 |
commit | d3c7765bd909368a1e7dbb563a933d7c48142f3a (patch) | |
tree | 2992586a9f445bdfe92d23374e3d11c9136961fa /sw/source/ui/fldui/fldtdlg.cxx | |
parent | f5de3612775c2919b9c78e8aedddf1048bbb5187 (diff) |
INTEGRATION: CWS os13 (1.9.114); FILE MERGED
2003/07/25 10:57:24 os 1.9.114.1: #i15268# convert some methods of SwFldMgr to be 'static'
Diffstat (limited to 'sw/source/ui/fldui/fldtdlg.cxx')
-rw-r--r-- | sw/source/ui/fldui/fldtdlg.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sw/source/ui/fldui/fldtdlg.cxx b/sw/source/ui/fldui/fldtdlg.cxx index 058eaa1cae42..97474e901c18 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.9 $ + * $Revision: 1.10 $ * - * last change: $Author: vg $ $Date: 2003-04-17 15:28:17 $ + * last change: $Author: hjs $ $Date: 2003-08-19 11:59:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -492,8 +492,11 @@ void SwFldDlg::EnableInsert(BOOL bEnable) { if( bEnable ) { - const SwWrtShell& rSh = ::GetActiveView()->GetWrtShell(); - if( rSh.IsReadOnlyAvailable() && rSh.HasReadonlySel() ) + SwView* pView = ::GetActiveView(); + DBG_ASSERT(pView, "no view found"); + if( !pView || + (pView->GetWrtShell().IsReadOnlyAvailable() && + pView->GetWrtShell().HasReadonlySel()) ) bEnable = FALSE; } GetOKButton().Enable(bEnable); |