summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-09-19 12:52:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-09-19 22:25:40 +0200
commitaf8c304b8f984066d80d64f9a821ee9433e97781 (patch)
treeda0de859924bdfc80d5c0eb5064e03e8e9d280fa /sw
parent8d40a23aafc4c0972e052fbb58862228839cc7ef (diff)
null parent is a bad idea
Change-Id: Ifcd9039c2de396a4cadf3ba557df3cff3cc6001c Reviewed-on: https://gerrit.libreoffice.org/60772 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uiview/viewling.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx
index 6824ea96bca9..1cb076a471d3 100644
--- a/sw/source/uibase/uiview/viewling.cxx
+++ b/sw/source/uibase/uiview/viewling.cxx
@@ -405,8 +405,8 @@ void SwView::HyphenateDocument()
// do not hyphenate if interactive hyphenation is active elsewhere
if (SwEditShell::HasHyphIter())
{
- std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(nullptr, VclMessageType::Warning,
- VclButtonsType::Ok, SwResId(STR_MULT_INTERACT_HYPH_WARN)));
+ std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetEditWin().GetFrameWeld(),
+ VclMessageType::Warning, VclButtonsType::Ok, SwResId(STR_MULT_INTERACT_HYPH_WARN)));
xBox->set_title(SwResId(STR_HYPH_TITLE));
xBox->run();
return;