From 2911b48da6b7e4c0aa7efe3a3c571e91b5ae9725 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 7 Mar 2013 19:23:30 +0530 Subject: [PATCH] fix in style settings --- website/doctype/style_settings/style_settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/website/doctype/style_settings/style_settings.py b/website/doctype/style_settings/style_settings.py index 95bba74182..0685ea76a1 100644 --- a/website/doctype/style_settings/style_settings.py +++ b/website/doctype/style_settings/style_settings.py @@ -15,6 +15,8 @@ # along with this program. If not, see . from __future__ import unicode_literals +from webnotes.utils import cint, cstr + class DocType: def __init__(self, d, dl): self.doc, self.doclist = d, dl @@ -46,8 +48,8 @@ class DocType: if not self.doc.font_size: self.doc.font_size = '13px' - self.doc.small_font_size = str(int(self.doc.font_size[:-2])-2) + 'px' - self.doc.page_border = int(self.doc.page_border) + self.doc.small_font_size = cstr(cint(self.doc.font_size[:-2])-2) + 'px' + self.doc.page_border = cint(self.doc.page_border) fonts = [] if self.doc.google_web_font_for_heading: