diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-08-25 19:58:59 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-08-25 20:11:50 +0400 |
commit | a5546942ec70fca551401ae61eee00b66a92f81d (patch) | |
tree | ff70f29396bc7d9e37e9b51a6de1c1f7e938e3f5 /sw | |
parent | 90083b70f59570f6576c0257576cb416b7eabbbf (diff) |
cast to wrong type, can cause crash when opening Options-Writer-AutoCaption
it turns out that GetParent() returns pointer to OfaTreeOptionsDialog,
not SfxSingleTabDialog. Disabling OK button in the options dialog does
not make any sense, so the patch removes that code.
Change-Id: I76618d89f904a6eac80fc08072dcde007b2d9c34
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/config/optload.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx index 19be1a271c00..65752e355de1 100644 --- a/sw/source/ui/config/optload.cxx +++ b/sw/source/ui/config/optload.cxx @@ -769,11 +769,6 @@ void SwCaptionOptPage::SaveEntry(SvLBoxEntry* pEntry) IMPL_LINK_NOARG(SwCaptionOptPage, ModifyHdl) { String sFldTypeName = aCategoryBox.GetText(); - - SfxSingleTabDialog *pDlg = (SfxSingleTabDialog *)GetParent(); - PushButton *pBtn = pDlg->GetOKButton(); - if (pBtn) - pBtn->Enable(sFldTypeName.Len() != 0); sal_Bool bEnable = aCategoryBox.IsEnabled() && sFldTypeName != sNone; aFormatText.Enable(bEnable); |