fix stupid oversight in LibFileScript

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3849 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-03-27 10:27:59 +00:00
parent 38a20ba481
commit bb704aeff6
5 changed files with 12 additions and 6 deletions

View 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

View File

@ -198,7 +198,7 @@ string const currentState(BufferView * bv)
break;
}
}
#if 1
#ifdef DEVEL_VERSION
state << _(", Paragraph: ") << text->cursor.par()->id();
#endif
}

View 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())

View 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>

View 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;