summaryrefslogtreecommitdiff
authorIvan 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)
commita5546942ec70fca551401ae61eee00b66a92f81d (patch) (side-by-side diff)
treeff70f29396bc7d9e37e9b51a6de1c1f7e938e3f5
parent90083b70f59570f6576c0257576cb416b7eabbbf (diff)
downloadcore-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
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--sw/source/ui/config/optload.cxx5
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);