summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-07 12:25:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-07 12:26:12 +0100
commit087fcc43b13985b03d935dfd1e25a0d36d58cb1e (patch)
treee0f862b561552eb02eb6f63466c96ad270a3747f
parent3703e3985e0aa9325cf9256a78bab6e62a24ede4 (diff)
Resolves: fdo#68600 limit comment width
Change-Id: I7060ae18a98e0793a936834b398f1e232d336672
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index 2dc137cbb157..2d0b3d54952d 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -626,7 +626,6 @@ 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 )
@@ -636,9 +635,10 @@ SfxDocumentDescPage::SfxDocumentDescPage( Window * pParent, const SfxItemSet& rI
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);