X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetInfo.cpp;h=2b9b231903e00ab5910493aaa20c5578c0062b24;hb=2906a35663b92030b0668a42ab370dba8ffca4cf;hp=212567686771fd4d762ef71156d4d4483392d738;hpb=6056db3212555ce5b7c599a350e95e9a4b5d1853;p=lyx.git diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp index 2125676867..2b9b231903 100644 --- a/src/insets/InsetInfo.cpp +++ b/src/insets/InsetInfo.cpp @@ -422,7 +422,7 @@ void InsetInfo::updateInfo() break; } if (name_ == "path") { - setText(from_utf8(buffer().filePath())); + setText(from_utf8(os::latex_path(buffer().filePath()))); break; } if (name_ == "class") { @@ -462,7 +462,7 @@ void InsetInfo::updateInfo() } -docstring InsetInfo::contextMenu(BufferView const &, int, int) const +string InsetInfo::contextMenu(BufferView const &, int, int) const { //FIXME: We override the implementation of InsetCollapsable, //because this inset is not a collapsable inset. @@ -470,9 +470,9 @@ docstring InsetInfo::contextMenu(BufferView const &, int, int) const } -docstring InsetInfo::contextMenuName() const +string InsetInfo::contextMenuName() const { - return from_ascii("context-info"); + return "context-info"; }