]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gtk/GGraphics.C
partial compile fix
[lyx.git] / src / frontends / gtk / GGraphics.C
index 5215665ee0b8cf7733bce1298c128582b6d74b56..f5697981170a3dbc60db019b496e4187d2908119 100644 (file)
@@ -468,7 +468,7 @@ void GGraphics::onBrowseClicked()
 {
        // Get the filename from the dialog
        string const in_name = fileentry_->get_text();
-       string const out_name = controller().browse(in_name);
+       string const out_name = lyx::to_utf8(controller().browse(lyx::from_utf8(in_name)));
        lyxerr[Debug::GRAPHICS]
                << "[FormGraphics]out_name: " << out_name << "\n";
        if (out_name != in_name && !out_name.empty()) {