diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-07 12:25:33 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-05-09 14:48:36 +0200 |
commit | 60f7e575de012f42e5c32870bd439bc03a6e8580 (patch) | |
tree | 165b339c40f01ee33a37bfdda03e49e9b578d936 /sfx2 | |
parent | c21334c1ee69aaec36ff99021eab0594d051535b (diff) |
Resolves: fdo#68600 limit comment width
(cherry picked from commit 087fcc43b13985b03d935dfd1e25a0d36d58cb1e)
Conflicts:
sfx2/source/dialog/dinfdlg.cxx
Change-Id: I7060ae18a98e0793a936834b398f1e232d336672
Reviewed-on: https://gerrit.libreoffice.org/9269
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 4975c615a126..a7c6c95e1d73 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -630,19 +630,18 @@ bool SfxDocumentInfoItem::PutValue( const Any& rVal, sal_uInt8 nMemberId ) return bRet; } -//------------------------------------------------------------------------ SfxDocumentDescPage::SfxDocumentDescPage( Window * pParent, const SfxItemSet& rItemSet ) : SfxTabPage(pParent, "DescriptionInfoPage", "sfx/ui/descriptioninfopage.ui", rItemSet) , m_pInfoItem ( NULL ) - { get(m_pTitleEd, "title"); get(m_pThemaEd, "subject"); get(m_pKeywordsEd, "keywords"); get(m_pCommentEd, "comments"); + m_pCommentEd->set_width_request(m_pKeywordsEd->get_preferred_size().Width()); + m_pCommentEd->set_height_request(m_pCommentEd->GetTextHeight() * 16); } -//------------------------------------------------------------------------ SfxTabPage *SfxDocumentDescPage::Create(Window *pParent, const SfxItemSet &rItemSet) { return new SfxDocumentDescPage(pParent, rItemSet); |