diff options
author | Ariel Constenla-Haile <arielch@apache.org> | 2013-02-13 14:24:34 +0000 |
---|---|---|
committer | Ariel Constenla-Haile <arielch@apache.org> | 2013-02-13 14:24:34 +0000 |
commit | 50946fb5ffab716b8fa3bee63fc9ab5d083a88b8 (patch) | |
tree | c97dc571d30d4053e7eb25bdd0766a21414a201e /cui | |
parent | 3007f2652fd2304514ecdffa440066502a222f59 (diff) |
i118751 - Increase colour list boxes line count
Patch by: Tsutomu Uchino
Notes
Notes:
prefer: aa4ef13a517d4eee4db9d36283eca3240bdd873f
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optcolor.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx index a154e499830c..c84c2f7e1ab2 100644 --- a/cui/source/options/optcolor.cxx +++ b/cui/source/options/optcolor.cxx @@ -954,15 +954,18 @@ ColorConfigWindow_Impl::ColorConfigWindow_Impl(Window* pParent, const ResId& rRe } aColorBoxes[0]->SetHelpId( aColorLBHids[0] ); + aColorBoxes[0]->SetDropDownLineCount( 10 ); + const sal_Int32 nColorLBHids = sizeof( aColorLBHids )/ sizeof( aColorLBHids[0] ); for( sal_Int32 i = 1; i < nCount; i++ ) { - if(aColorBoxes[i]) - { - aColorBoxes[i]->CopyEntries( *aColorBoxes[0] ); - if( i < sal_Int32(sizeof(aColorLBHids)/sizeof(aColorLBHids[0])) ) - aColorBoxes[i]->SetHelpId( aColorLBHids[i] ); - } + if( !aColorBoxes[i] ) + continue; + + aColorBoxes[i]->CopyEntries( *aColorBoxes[0] ); + if( i < nColorLBHids ) + aColorBoxes[i]->SetHelpId( aColorLBHids[i] ); + aColorBoxes[i]->SetDropDownLineCount( 10 ); } } /* -----------------------------27.03.2002 11:04------------------------------ |