try to fix missing crops

This commit is contained in:
Sanj 2011-07-05 18:44:52 +05:30
parent 443b6fc81f
commit 3ff94dc17b

View File

@ -731,7 +731,7 @@ class ImageBox(models.Model):
try:
f = open(path)
except:
self.crop(self.x1, self, y1, self.x2, self.y2, self.width, self.height)
self.crop(self.crop_x1, self.crop_y1, self.crop_x2, self.crop_y2, self.width, self.height)
f = open(path)
size = str(int(self.width * m)) + "x" + str(int(self.height * m))