]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetGraphics.cpp
Math.lyx, Tutorial.lyx: fix some typos spotted by a user
[lyx.git] / src / insets / InsetGraphics.cpp
index 733d4c6cc75b4329e8fd9ff94136036b2c6c9b4b..9962af603960154d06351574d86660bda351c15c 100644 (file)
@@ -487,7 +487,7 @@ copyToDirIfNeeded(DocFileName const & file, string const & dir)
        string const file_in = file.absFileName();
        string const only_path = onlyPath(file_in);
        if (rtrim(onlyPath(file_in) , "/") == rtrim(dir, "/"))
-               return make_pair(IDENTICAL_PATHS, file_in);
+               return make_pair(IDENTICAL_PATHS, FileName(file_in));
 
        string mangled = file.mangledFileName();
        if (formats.isZippedFile(file)) {
@@ -1091,7 +1091,7 @@ string InsetGraphics::params2string(InsetGraphicsParams const & params,
 
 docstring InsetGraphics::toolTip(BufferView const &, int, int) const
 {
-       return from_utf8(FileName(params().filename.relFileName()).onlyFileName());
+       return from_utf8(params().filename.onlyFileName());
 }
 
 namespace graphics {
@@ -1164,7 +1164,7 @@ void unifyGraphicsGroups(Buffer & b, string const & argument)
                        InsetGraphics & ins = static_cast<InsetGraphics &>(*it);
                        InsetGraphicsParams inspar = ins.getParams();
                        if (params.groupId == inspar.groupId) {
-                               b.undo().recordUndo(it);
+                               b.undo().recordUndo(CursorData(it));
                                params.filename = inspar.filename;
                                ins.setParams(params);
                        }