mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Can't apply a patch cleanly now it seems. Time to go home...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2570 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
50a865b664
commit
15a10c7140
@ -58,29 +58,30 @@ ButtonPolicy::SMInput FormBibtex::input(FL_OBJECT * ob, long)
|
||||
"Select Database",
|
||||
"*.bib| BibTeX Databases (*.bib)");
|
||||
if (!out_name.empty()) {
|
||||
out_name = OnlyFilename(out_name);
|
||||
if (suffixIs(out_name,".bst")) {
|
||||
// to prevent names like xxxbst.bst
|
||||
if (suffixIs(out_name,".bib")) {
|
||||
// to prevent names like xxxbib.bib
|
||||
// (because latex needs it without suffix)
|
||||
out_name = ChangeExtension(out_name,"");
|
||||
}
|
||||
|
||||
|
||||
fl_freeze_form(form());
|
||||
fl_set_input(dialog_->database, out_name.c_str());
|
||||
fl_unfreeze_form(form());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ob == dialog_->style_browse) {
|
||||
string const in_name = fl_get_input(dialog_->style);
|
||||
string const in_name = fl_get_input(dialog_->style);
|
||||
string out_name =
|
||||
controller().Browse(in_name,
|
||||
"Select BibTeX-Style",
|
||||
"*.bst| BibTeX Styles (*.bst)");
|
||||
if (!out_name.empty()) {
|
||||
out_name = OnlyFilename(out_name);
|
||||
if (suffixIs(out_name,".bst")) {
|
||||
// to prevent names like xxxbib.bib
|
||||
// name for display only
|
||||
out_name = OnlyFilename(ChangeExtension(out_name,""));
|
||||
// to prevent names like xxxbst.bst
|
||||
// (because bibtex needs it without the suffix)
|
||||
out_name = ChangeExtension(out_name,"");
|
||||
}
|
||||
|
||||
fl_freeze_form(form());
|
||||
@ -139,4 +140,3 @@ void FormBibtex::apply()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user