summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-11-15 20:59:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-11-17 20:10:51 +0000
commit91672c8b9d346390f854ddf3fa3c2fdb681ceaff (patch)
tree9156f0c683b33274756446e8af5d171d2d895c3a /filter
parente87c9d8497b570b59d471404dada098bb20a0b40 (diff)
accessible names set *after* resource was freed, so names were null
I've seen so many of these accessible resources in the wrong place or otherwise broken that I wonder if any of that is really working. We can eventually move all this foo into the .ui format and implement the accessiblilty stuff in the builder Change-Id: I82e87df05d5cd3777ed5ab8b83c424ff759124e9
Diffstat (limited to 'filter')
-rw-r--r--filter/source/xsltdialog/xmlfiltersettingsdialog.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
index bc4c31c1292d..64f1baa0d32d 100644
--- a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
@@ -74,8 +74,6 @@ XMLFilterSettingsDialog::XMLFilterSettingsDialog( Window* pParent, ResMgr& rResM
sTemplatePath( RTL_CONSTASCII_USTRINGPARAM( "$(user)/template/") ),
sDocTypePrefix( RTL_CONSTASCII_USTRINGPARAM( "doctype:") )
{
- FreeResource();
-
mpResMgr = &rResMgr;
mpFilterListBox = new XMLFilterListBox( &maCtrlFilterList );
@@ -86,6 +84,8 @@ XMLFilterSettingsDialog::XMLFilterSettingsDialog( Window* pParent, ResMgr& rResM
maCtrlFilterList.SetAccessibleName(RESIDSTR(STR_XML_FILTER_LISTBOX));
mpFilterListBox->SetHelpId( HID_XML_FILTER_LIST );
+ FreeResource();
+
maPBNew.SetClickHdl(LINK( this, XMLFilterSettingsDialog, ClickHdl_Impl ) );
maPBEdit.SetClickHdl(LINK( this, XMLFilterSettingsDialog, ClickHdl_Impl ) );
maPBTest.SetClickHdl(LINK( this, XMLFilterSettingsDialog, ClickHdl_Impl ) );