From 1c8811df84499a642d1a3eaae53b3092124c7cf0 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 21 Jun 2011 03:07:29 +0530 Subject: [PATCH] one more round --- edgware/editor/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edgware/editor/models.py b/edgware/editor/models.py index 8e5b1ce..7163530 100644 --- a/edgware/editor/models.py +++ b/edgware/editor/models.py @@ -265,7 +265,7 @@ class Article(models.Model): # product = Product.objects.get(pk=self.product.id) aspect_ratio = self.typ.aspect_ratio width = 800 - height = int(800.0 // aspect_ratio) + height = int(round(800.0 // aspect_ratio)) return (width, height,) def print_size(self, print_width):