diff options
-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------------------------------ |