diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-17 14:21:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-18 09:51:48 +0200 |
commit | 02e5ff1d9b12c12fcaaa929c6dea626eefc5bb8c (patch) | |
tree | 6d7b6f3c16942b71eb434127b5fa256abd05f4df /vcl | |
parent | fe3d5766fa3c42f6cf8d1ea47af820e0b1c1cf48 (diff) |
Resolves: tdf#117046 messages set after dialog created should affect size
Change-Id: I03688ec1d869720b4a042602ff1da15727174592
Reviewed-on: https://gerrit.libreoffice.org/53046
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/layout.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index ef3437eba967..3e6cc477e3a5 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -2451,6 +2451,7 @@ void MessageDialog::set_primary_text(const OUString &rPrimaryString) { m_pPrimaryMessage->SetText(m_sPrimaryString); m_pPrimaryMessage->Show(!m_sPrimaryString.isEmpty()); + MessageDialog::SetMessagesWidths(this, m_pPrimaryMessage, !m_sSecondaryString.isEmpty() ? m_pSecondaryMessage.get() : nullptr); } } @@ -2461,6 +2462,7 @@ void MessageDialog::set_secondary_text(const OUString &rSecondaryString) { m_pSecondaryMessage->SetText("\n" + m_sSecondaryString); m_pSecondaryMessage->Show(!m_sSecondaryString.isEmpty()); + MessageDialog::SetMessagesWidths(this, m_pPrimaryMessage, !m_sSecondaryString.isEmpty() ? m_pSecondaryMessage.get() : nullptr); } } |