]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormExternal.C
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / FormExternal.C
index db52d959f8fb30c59ca81350a7948ff79afeb6de..dfc7d0c4a2bf523f553194da9434af0ab619a9b4 100644 (file)
@@ -629,7 +629,12 @@ ButtonPolicy::SMInput FormExternal::input(FL_OBJECT * ob, long)
        } else if (ob == file_->button_browse) {
 
                string const in_name  = fl_get_input(file_->input_file);
-               string const out_name = controller().Browse(in_name);
+
+               int const choice = fl_get_choice(file_->choice_template) - 1;
+               string const template_name =
+                       controller().getTemplate(choice).lyxName;
+               string const out_name =
+                       controller().browse(in_name, template_name);
                fl_set_input(file_->input_file, out_name.c_str());
 
        } else if (ob == file_->button_edit) {