> It seems like prepareFile() is not called during copy'n'paste. No, it is used when generating LaTeX. If you open the view source window, and automatically update, you will see the debugging info when you change the document.
> GuiGraphics.cpp(554): paramsToDialog: name = /Users/ct/Desktop/WAN_map.pdf Ok, this is the interesting part: Can you put the following at the position GuiGraphics:554: LYXERR0(name); LYXERR0(igp.filename.absFilename()); LYXERR0(fromqstr(bufferFilepath())); LYXERR0(buffer().filePath()); and report back. Maybe the unnecessary transition fromqstr(toqstr(buffer().filePath())) screws things up. Vincent