]> git.lyx.org Git - features.git/commitdiff
Insert insetbibtex with "plain" style
authorDekel Tsur <dekelts@tau.ac.il>
Tue, 20 Aug 2002 12:14:00 +0000 (12:14 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Tue, 20 Aug 2002 12:14:00 +0000 (12:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5029 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView_pimpl.C
src/ChangeLog

index 02ecb02462f8eef186efb12d8302129515c49f00..9ac004e3d83481e2863ad69331f527b600e37826 100644 (file)
@@ -2935,8 +2935,10 @@ bool BufferView::Pimpl::dispatch(FuncRequest const & ev)
                // ale970405+lasgoutt970425
                // The argument can be up to two tokens separated
                // by a space. The first one is the bibstyle.
-               string const db       = token(ev.argument, ' ', 0);
-               string const bibstyle = token(ev.argument, ' ', 1);
+               string const db = token(ev.argument, ' ', 0);
+               string bibstyle = token(ev.argument, ' ', 1);
+               if (bibstyle.empty())
+                       bibstyle = "plain";
 
                InsetCommandParams p("BibTeX", db, bibstyle);
                InsetBibtex * inset = new InsetBibtex(p);
index 42ef0a1d57540964e20b04b6617efb4c9ba2b4a2..dd83f5d67ebcece8f8d65de46d73e46196f194ff 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-20  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * BufferView_pimpl.C (dispatch): Insert insetbibtex with "plain"
+       style if style is not specified.
+
 2002-08-20  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
 
        * text2.C (setCounter): when searching for right label for a