| author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-08-25 15:58:59 (GMT) |
|---|---|---|
| committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-08-25 16:11:50 (GMT) |
| commit | a5546942ec70fca551401ae61eee00b66a92f81d (patch) (side-by-side diff) | |
| tree | ff70f29396bc7d9e37e9b51a6de1c1f7e938e3f5 | |
| parent | 90083b70f59570f6576c0257576cb416b7eabbbf (diff) | |
| download | core-a5546942ec70fca551401ae61eee00b66a92f81d.zip core-a5546942ec70fca551401ae61eee00b66a92f81d.tar.gz | |
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
| -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 19be1a2..65752e3 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); |
