Fixed autocompletion of Death Place, Fixed name swapping, fixed PDF document generator conversion of x,y widths, Added new images to report dialogs

svn: r842
This commit is contained in:
Don Allingham
2002-03-15 23:55:54 +00:00
parent a521439dd5
commit 9c015e49ef
10 changed files with 672 additions and 174 deletions

View File

@@ -260,9 +260,9 @@ class PdfDoc(TextDoc):
self.col = self.col + self.span
def add_photo(self,name,pos,x,y):
def add_photo(self,name,pos,x_cm,y_cm):
img = ImgManip.ImgManip(name)
nx,ny = img.size()
x,y = img.size()
ratio = float(x_cm)*float(y)/(float(y_cm)*float(x))