[Libreoffice-commits] .: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Aug 25 09:16:41 PDT 2012
sw/source/ui/config/optload.cxx | 5 -----
1 file changed, 5 deletions(-)
New commits:
commit a5546942ec70fca551401ae61eee00b66a92f81d
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date: Sat Aug 25 19:58:59 2012 +0400
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
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);
More information about the Libreoffice-commits
mailing list