章华军 wrote: > Hi All > I have met one issue of Mailmerge wizard,detail like below: > OS:Windows XP SP2 > Version:OOo 2.2 > Step: > 1.Open a blank docuemnt in OO.o writer. > 2.Goto Tools > Mailmerge wizard > 3.In steps list,select insert address block > 4.Click "Select Address List..." button,in the pop up dialog,click "Create" > button,click "OK" button on the "New Address List" dialog and save the file > as 1.csv > 5.Click "OK" button on "Select Address List" dialog to close it > 6.Click "More" button,Click "Delete" button on "Select Address Block" dialog > till this button disable,click "New" button,in "New Address Block" > dialog,select some address items,than click "OK" button,Click "OK" button > Result: > Now,the OOo will crash. > I tried to fix this issue,and found out the crash will happen in this > function "const uno::Sequence< ::rtl::OUString >& > SwSelectAddressBlockDialog::GetAddressBlocks() " of > sw\source\ui\dbui\mmaddressblockpage.cxx,I think the reason is the code will > access m_aAddressBlocks,but now the block is empty,and before access > m_aAddressBlocks,the code ++nIndex cause we wanna beyond the mark access > addressblock. > So,my question is why we need do ++nIndex before access > m_aAddressBlocks????? > Is there anyone met this issue or know the reason??? > Hi, this code is plain wrong. It should start to append the address blocks from position NULL (not one as now) and skip the position nSelect that has already been copied to the first position of the new sequence.
Regards, Oliver --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
