diff --git a/lib/lyx2lyx/ChangeLog b/lib/lyx2lyx/ChangeLog index 2904547915..2d39d4c78e 100644 --- a/lib/lyx2lyx/ChangeLog +++ b/lib/lyx2lyx/ChangeLog @@ -1,3 +1,7 @@ +2005-07-29 José Matos + + * lyx_1_4.py: Fix a4 package removal when the preamble is already there. + 2005-07-29 José Matos * lyx_1_4.py: Fix widemarginsa4 convertion. diff --git a/lib/lyx2lyx/lyx_1_4.py b/lib/lyx2lyx/lyx_1_4.py index 2eab75fbfa..1ee3d76ca5 100644 --- a/lib/lyx2lyx/lyx_1_4.py +++ b/lib/lyx2lyx/lyx_1_4.py @@ -1883,7 +1883,7 @@ def remove_paperpackage(file): file.header[j:j]=["\\begin_preamble", conv[paperpackage],"\\end_preamble"] else: - file.header[j+1:j+1] = conv[paperpackage] + file.header[j+1:j+1] = [conv[paperpackage]] del file.header[i]