On Dec 8, 2010, at 9:43 AM, Vincent van Ravesteijn wrote: >> 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.
Ok, this looks the same for both images (not surprising because orig_file = params().filename.absFilename(), so the save_abs_path_ flag is not relevant here): insets/InsetGraphics.cpp(558): prepareFile: orig_file = /Users/ct/Desktop/WAN_map.pdf insets/InsetGraphics.cpp(559): prepareFile: buffer().filePath() = /Users/ct/ insets/InsetGraphics.cpp(560): prepareFile: rel_file = Desktop/WAN_map.pdf insets/InsetGraphics.cpp(790): InsetGraphics::latex outputting: \includegraphics{Desktop/WAN_map} >> 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. Clicking on original image: GuiGraphics.cpp(554): paramsToDialog: name = Desktop/WAN_map.pdf GuiGraphics.cpp(555): paramsToDialog: igp.filename.absFilename() = /Users/ct/Desktop/WAN_map.pdf GuiGraphics.cpp(556): paramsToDialog: fromqstr(bufferFilepath()) = /Users/ct/ GuiGraphics.cpp(557): paramsToDialog: buffer().filePath() = /Users/ct/ Clicking on pasted image: GuiGraphics.cpp(554): paramsToDialog: name = /Users/ct/Desktop/WAN_map.pdf GuiGraphics.cpp(555): paramsToDialog: igp.filename.absFilename() = /Users/ct/Desktop/WAN_map.pdf GuiGraphics.cpp(556): paramsToDialog: fromqstr(bufferFilepath()) = /Users/ct/ GuiGraphics.cpp(557): paramsToDialog: buffer().filePath() = /Users/ct/ Cheers, Christian