From 236ea57a3b8a5882f96673fadaf0c4e17b588492 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 6 Jul 2011 18:34:43 +0530 Subject: [PATCH] lets try rounding in addPx again --- 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 eb4d0ad..1a4cdd4 100644 --- a/edgware/editor/models.py +++ b/edgware/editor/models.py @@ -20,7 +20,7 @@ def addPx(val): ''' Adds 'px' to an integer value for a CSS property from DB ''' - r = str(int(val)) + "px" + r = str(int(round(val))) + "px" return r def cleanCSS(prop):