lyx_1_4.lyx (paperpackage): Fix empty paperpackage case.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10141 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2005-07-06 17:50:10 +00:00
parent 178897b091
commit 7ed89fefb1
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-07-06 José Matos <jamatos@lyx.org>
* lyx_1_4.lyx (paperpackage): Fix empty paperpackage case.
2005-07-06 José Matos <jamatos@lyx.org>
* LyX.py (warning): Prefix warnings with label "Warning: ".

View File

@ -1522,7 +1522,10 @@ def convert_paperpackage(file):
return
packages = {'default':'none','a4':'none', 'a4wide':'a4', 'widemarginsa4':'a4wide'}
if len(split(file.header[i])) > 1:
paperpackage = split(file.header[i])[1]
else:
paperpackage = "default"
file.header[i] = replace(file.header[i], paperpackage, packages[paperpackage])