On Thu, Jan 01, 2009 at 10:03:12PM +0100, Dieter Jurzitza wrote: > Dear listmembers, > well, obviously my C-programming capabilities were sufficient, though. My > first attempt of using "fprintf("%s\n", name1); ended with an "invalid > machinecode" message - but patching the debugging-cout messagestring resulted > in success.
fprintf has the signature int fprintf(FILE *stream, const char *format, ...); i.e. you are passing the format string as FILE pointer. > --- src/frontends/qt4/GuiApplication.cpp.original 2008-11-29 > 15:16:00.000000000 +0100 > +++ src/frontends/qt4/GuiApplication.cpp 2009-01-01 21:56:46.000000000 > +0100 > @@ -342,7 +342,11 @@ > if (res.exists(name2)) > return path + name2; > > - LYXERR(Debug::GUI, "Cannot find icon for command \"" > + LYXERR(Debug::GUI, "Cannot find icon with filename " > + << "\"" << name1 << "\"" > + << " or filename " > + << "\"" << name2 << "\"" > + << " for command " > << lyxaction.getActionName(f.action) > << '(' << to_utf8(f.argument()) << ")\""); > > --- stdtoolbars.inc.original 2008-12-20 20:01:06.000000000 +0100 > +++ stdtoolbars.inc 2009-01-01 21:37:59.000000000 +0100 > @@ -110,6 +110,11 @@ > Item "Text style" "dialog-show character" > Item "Paragraph settings" "layout-paragraph" > Item "Thesaurus" "thesaurus-entry" > + Separator > + Item "Align justified" "paragraph-params \align block" > + Item "Align left" "paragraph-params \align left" > + Item "Align center" "paragraph-params \align center" > + Item "Align right" "paragraph-params \align right" > End > > Toolbar "table" "Table" I think first one can/should be applied. Andre'