]> git.lyx.org Git - lyx.git/commitdiff
fix stupid oversight in LibFileScript
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 27 Mar 2002 10:27:59 +0000 (10:27 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 27 Mar 2002 10:27:59 +0000 (10:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3849 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/bufferview_funcs.C
src/lyxfunc.C
src/support/ChangeLog
src/support/filetools.C

index f4ed8ac7637bc3dfa3b4986ae6e18f9bdae3a06b..2cef4f66b61d8fd780de7684af771963dc1a028e 100644 (file)
@@ -1,5 +1,10 @@
 2002-03-27  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
 
+       * bufferview_funcs.C (currentState): only show paragraph number
+       for is DEVEL_VERSION is set.
+
+       * lyxfunc.C (dispatch): put warning in INFO channel
+
        * MenuBackend.C (expand): translate the name of floats
 
        * FloatList.C (FloatList): mark the float names for translation
index d1718aa92ffe734afe3c801355472b9e57d24c10..768f700a9b7b180354850dd424126f8e7044d9f9 100644 (file)
@@ -198,7 +198,7 @@ string const currentState(BufferView * bv)
                                break;
                        }
                }
-#if 1
+#ifdef DEVEL_VERSION
                state << _(", Paragraph: ") << text->cursor.par()->id();
 #endif
        }
index 5b9e126da3731d9cbdfa6f3b00a8b201881001b9..f3d292f67db98735c04150180b8ef4cc8d5b90aa 100644 (file)
@@ -1408,8 +1408,8 @@ string const LyXFunc::dispatch(kb_action action, string argument)
                                            << id << "]" << endl;
                        break;
                } else {
-                       lyxerr << "Paragraph " << par->id()
-                              << " found." << endl;
+                       lyxerr[Debug::INFO] << "Paragraph " << par->id()
+                                           << " found." << endl;
                }
 
                if (owner->view()->theLockingInset())
index f692c377e202b42abc2a5e1e594599695e033d14..17530fcc21686a340bf00b81942fc4911b4c7182 100644 (file)
@@ -2,6 +2,7 @@
 
        * filetools.C (LibScriptSearch): new command. Searches for scripts
        in lyx data directories.
+       (LibScriptSearch): try to use split() correctly.
 
 2002-03-21  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
index 03add4cfcbee572fcfa4bccf04235ad47fbc79db..746a141da98427050f71f0f14fb5208fda23079a 100644 (file)
@@ -331,9 +331,9 @@ i18nLibFileSearch(string const & dir, string const & name,
 
 string const LibScriptSearch(string const & command)
 {
-       string script = command;
-       string args;
-       split(script, args, ' ');
+       string script;
+       string args = command;
+       split(args, script, ' ');
        script = LibFileSearch("scripts", script);
        if (script.empty())
                return command;