A few small fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1031 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-09-22 12:16:02 +00:00
parent cafa657995
commit 55e638e486
4 changed files with 67 additions and 50 deletions

View File

@ -1,3 +1,13 @@
2000-09-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* lib/doc/LaTeXConfig.lyx.in: updated.
* src/language.C (initL): remove language "francais" and change a
bit the names of the two other french variations.
* src/support/lyxstring.C (lyxstring): do not apply strlen() on a
string that may not be 0-terminated.
2000-09-20 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/Makefile.am (lyx_SOURCES): remove table.C and Table.h

View File

@ -1062,21 +1062,6 @@ a4
Other packages
\layout Subsection
array
\layout Description
Found: @chk_array@
\layout Description
CTAN:
\family typewriter
macros/latex/required/tools/array.dtx
\layout Description
Notes: The package array is needed by LyX to be able to output vertical
alignment other then ''top'' for tabulars.
\layout Subsection
algorithm
\layout Description
@ -1113,6 +1098,21 @@ index of algorithms
too.
\layout Subsection
array
\layout Description
Found: @chk_array@
\layout Description
CTAN:
\family typewriter
macros/latex/required/tools/array.dtx
\layout Description
Notes: The package array is needed by LyX to be able to output vertical
alignment other then ''top'' for tabulars.
\layout Subsection
babel
\layout Description
@ -1311,6 +1311,38 @@ default
.
\layout Subsection
longtable
\layout Description
Found: @chk_longtable@
\layout Description
CTAN:
\family typewriter
macros/latex/packages/tools/longtable.dtx
\layout Description
Notes: The package
\family sans
longtable
\family default
is needed by LyX to be able to output correctly multipage tables.
\layout Subsection
prettyref
\layout Description
Found: @chk_prettyref@
\layout Description
CTAN:
\family typewriter
macros/latex/contrib/supported/prettyref
\layout Description
Notes: none yet
\layout Subsection
rotating
\layout Description
@ -1368,24 +1400,6 @@ setspace
is needed by LyX to change the line spacing of your document.
\layout Subsection
longtable
\layout Description
Found: @chk_longtable@
\layout Description
CTAN:
\family typewriter
macros/latex/packages/tools/longtable.dtx
\layout Description
Notes: The package
\family sans
longtable
\family default
is needed by LyX to be able to output correctly multipage tables.
\layout Subsection
url
\layout Description
@ -1404,25 +1418,15 @@ url
is needed by LyX to be able to output url's corrently.
\layout Subsection
prettyref
\layout Description
Found: @chk_prettyref@
\layout Description
CTAN: ??
\layout Description
Notes: none yet
\layout Subsection
varioref
\layout Description
Found: @chk_varioref@
\layout Description
CTAN: ??
CTAN:
\family typewriter
macros/latex/required/tools/
\layout Description
Notes: none yet

View File

@ -70,9 +70,8 @@ void LangInit::initL()
{ "esperanto", N_("Esperanto"), false, &iso8859_3 },
{ "estonian", N_("Estonian"), false, &iso8859_4 },
{ "finnish", N_("Finnish"), false, &iso8859_1 },
{ "francais", N_("Francais"), false, &iso8859_1 },
{ "french", N_("French"), false, &iso8859_1 },
{ "frenchb", N_("Frenchb"), false, &iso8859_1 },
{ "frenchb", N_("French"), false, &iso8859_1 },
{ "french", N_("French (GUTenberg)"), false, &iso8859_1 },
{ "galician", N_("Galician"), false, &iso8859_1 },
{ "german", N_("German"), false, &iso8859_1 },
{ "greek", N_("Greek"), false, &iso8859_7 },

View File

@ -415,7 +415,11 @@ lyxstring::lyxstring(value_type const * s, size_type n)
Assert(s && n < npos); // STD!
static Srep empty_rep(0, "");
if (*s && n) { // s is not empty string and n > 0
rep = new Srep(min(strlen(s), n), s);
size_type l = 0;
while (l < n && s[l])
l++;
rep = new Srep(l, s);
// rep = new Srep(min(strlen(s),n), s);
} else {
++empty_rep.ref;
rep = &empty_rep;