diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-14 10:40:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-14 16:04:17 +0000 |
commit | 830f44b1ca0e121d3e27a031054313e3f194ab1d (patch) | |
tree | 5e278495b667b8ca36d10770dc07d32134954e80 /sw/source/ui/dbui | |
parent | d652af7d071bb5e5c3f7592d6dc7e7c400e711d3 (diff) |
we only ever want the preferred window size from GetOptimalSize
so remove the MAX and MIN options and simplify the whole lot
Change-Id: Iaaf350c37e01f7fce434af760bcddb9b7d7135ea
Diffstat (limited to 'sw/source/ui/dbui')
-rw-r--r-- | sw/source/ui/dbui/dbtree.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/ui/dbui/dbtree.cxx b/sw/source/ui/dbui/dbtree.cxx index fe695aaed2c2..add08275e3ef 100644 --- a/sw/source/ui/dbui/dbtree.cxx +++ b/sw/source/ui/dbui/dbtree.cxx @@ -208,11 +208,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSwDBTreeList(Window *pParen return new SwDBTreeList(pParent); } -Size SwDBTreeList::GetOptimalSize(WindowSizeType eType) const +Size SwDBTreeList::GetOptimalSize() const { - if (eType == WINDOWSIZE_PREFERRED) - return LogicToPixel(Size(100, 62), MapMode(MAP_APPFONT)); - return SvTreeListBox::GetOptimalSize(eType); + return LogicToPixel(Size(100, 62), MapMode(MAP_APPFONT)); } SwDBTreeList::~SwDBTreeList() |