https://issues.apache.org/ooo/show_bug.cgi?id=118751

--- Comment #8 from Ariel Constenla-Haile <[email protected]> ---
(In reply to comment #4)
> Created attachment 80220 [details]
> Patch to change count of dropdown lines to 10

@hanya: the patch misses the first list box (General - Document background)

The entries are set originally for the first listbox, in the loop they are
copied:


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] );
         aColorBoxes[i]->SetDropDownLineCount( 10 );
   }
}

That's why the index starts are 1, the entries are copied from the first list
box to the other listboxes. Before entering the loop, you should set the count
of drop lines to aColorBoxes[0]

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to