i've been trying to look into this weird crash and have added the
following to see which converters are there:
void PrefConverters::updateButtons()
{
lyxerr << "UPDATEBUTTONS START" << std::endl;
Converters::const_iterator ccit1 = form_->converters().begin();
Converters::const_iterator cend1 = form_->converters().end();
for (; ccit1 != cend1; ++ccit1) {
int type = form_->converters().getNumber(ccit1->From->name(),
ccit1->To->name());
lyxerr << "from: " << ccit1->From->name() << " to: " <<
ccit1->To->name() << " type " << type << std::endl;
}
lyxerr << "UPDATEBUTTONS END" << std::endl;
Converters::const_iterator ccit = form_->converters().begin();
Converters::const_iterator cend = form_->converters().end();
for (; ccit != cend; ++ccit) {
int type = form_->converters().getNumber(ccit->From->name(),
ccit->To->name());
lyxerr << "from: " << ccit->From->name() << " to: " <<
ccit->To->name() << " type " << type << std::endl;
}
the strange thing is that on initialisation it loops twice over the same
list:
UPDATEBUTTONS START
from: latex to: dvi type 0
from: pdflatex to: pdf2 type 1
from: latex to: lyx type 2
from: literate to: lyx type 3
from: latex to: wordhtml type 4
from: latex to: sxw type 5
from: ps to: pdf type 6
from: ps to: text3 type 7
from: dvi to: ps type 8
from: dvi to: pdf3 type 9
from: lyxpreview to: png type 10
from: eps to: pdf type 11
from: latex to: html type 12
from: lyxpreview to: ppm type 13
from: date to: dateout type 14
from: docbook to: docbook-xml type 15
from: fen to: asciichess type 16
from: fig to: pdftex type 17
from: fig to: pstex type 18
from: lyx to: lyx13x type 19
UPDATEBUTTONS END
from: latex to: dvi type 0
from: pdflatex to: pdf2 type 1
from: latex to: lyx type 2
from: literate to: lyx type 3
from: latex to: wordhtml type 4
from: latex to: sxw type 5
from: ps to: pdf type 6
from: ps to: text3 type 7
from: dvi to: ps type 8
from: dvi to: pdf3 type 9
from: lyxpreview to: png type 10
from: eps to: pdf type 11
from: latex to: html type 12
from: lyxpreview to: ppm type 13
from: date to: dateout type 14
from: docbook to: docbook-xml type 15
from: fen to: asciichess type 16
from: fig to: pdftex type 17
from: fig to: pstex type 18
from: lyx to: lyx13x type 19
but when i change something in the file formats (which then updates the
converters) the second loop over the converters shows no longer the same:
UPDATEBUTTONS START
from: latex to: dvi type 0
from: pdflatex to: pdf2 type 1
from: latex to: lyx type 2
from: literate to: lyx type 3
from: latex to: wordhtml type 4
from: latex to: sxw type 5
from: ps to: pdf type 6
from: ps to: text3 type 7
from: dvi to: ps type 8
from: dvi to: pdf3 type 9
from: lyxpreview to: png type 10
from: eps to: pdf type 11
from: latex to: html type 12
from: lyxpreview to: ppm type 13
from: date to: dateout type 14
from: docbook to: docbook-xml type 15
from: fen to: asciichess type 16
from: fig to: pdftex type 17
from: fig to: pstex type 18
from: lyx to: lyx13x type 19
UPDATEBUTTONS END
from: latex to: dvi type 0
from: pdflatex to: pdf2 type 1
from: latex to: lyx type 2
from: literate to: lyx type 3
from: latex to: wordhtml type 4
from: latex to: sxw type 5
from: ps to: pdf type 6
from: ps to: text3 type 7
from: dvi to: ps type 8
from: dvi to: pdf3 type 9
from: lyxpreview to: png type 10
from: eps to: pdf type 11
from: latex to: html type 12
from: lyxpreview to: ppm type 13
from: date to: dateout type 14
from: docbook to: docbook-xml type 15
from: fen to: asciichess type 16
from: fig to: pdftex type 17
from: fig to: pstex type 18
from: lyx to: lyx13x type 19
from: bmp to: dateout type -1
from: pbm to: asciiimage type -1
from: bmp to: png type -1
from: literate to: png type -1
from: bmp to: xpm type -1
from: bmp to: tiff type -1
from: text4 to: asciichess type -1
from: text4 to: pdf type -1
from: dateout to: text4 type -1
from: dateout to: textparagraph type -1
from: ppm to: agr type -1
from: text to: asciichess type -1
from: bmp to: text3 type -1
from: ppm to: html type -1
from: text2 to: lyxpreview type -1
from: word to: wordhtml type -1
from: dvi to: linuxdoc type -1
from: docbook to: program type -1
from: docbook to: tgif type -1
from: png to: ps type -1
anyone a clue what is happening here?
thanks, ed