hmm, now that i'm using these mergeheader commands, i find a new type
of problem.
First I process these commands, and count how many. Then (if >0), I
insert the file, and kill this many paragraphs. To kill them, I call
my killCommand(), which results in an empty paragraph.
After merging, I have a number of fully empty paragraphs, and otherwise
misdisplayed stuff. If I use the scrollbar to move to the beginning of
the document, and downarrow through it, it reformats just fine.
If I use the uparrow from the end, at the first empty paragraph, I get
Program received signal SIGSEGV, Segmentation fault.
0x80a1647 in LyXText::UpdateCounters (this=0x82c3c18, row=0x82c56b8) at text2.C:1661
(xxgdb)
which corresponds to
while (par) {
while (row->par != par)
row = row->next;
SetCounter(par);
I've also tried moving to the begining to send RedoParagraph to each
paragrpha, with a similar crash, as does sending the begining and end
locations to text::RedoParagraphs().
I've also tried setting the cursor to the beginning, and using
text::CursorDown() and text::CursorDownParagraph(), but neither of
these ever leaves the original paragraph.
I'm stumped. But I now have essentially all features working
correctly, if you use the correct work-arounds :)
rick
--