summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app/docsh2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/app/docsh2.cxx')
-rw-r--r--sw/source/uibase/app/docsh2.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/uibase/app/docsh2.cxx b/sw/source/uibase/app/docsh2.cxx
index d793e2c43886..65b5cae493d4 100644
--- a/sw/source/uibase/app/docsh2.cxx
+++ b/sw/source/uibase/app/docsh2.cxx
@@ -911,8 +911,10 @@ void SwDocShell::Execute(SfxRequest& rReq)
""
};
- const char** pHelpIds = bCreateHtml ? aHTMLHelpIds : aMasterHelpIds;
- aDlgHelper.SetControlHelpIds( nControlIds, pHelpIds );
+ if (bCreateHtml)
+ aDlgHelper.SetControlHelpIds( nControlIds, aHTMLHelpIds );
+ else
+ aDlgHelper.SetControlHelpIds( nControlIds, aMasterHelpIds );
uno::Reference < XFilePicker2 > xFP = aDlgHelper.GetFilePicker();
std::shared_ptr<const SfxFilter> pFlt;