[pitivi] titleeditor: Handle float font sizes



commit 9af579a1068d152cc0ea703c9d8fb906175d0a00
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Thu Mar 20 00:31:48 2014 +0100

    titleeditor: Handle float font sizes

 pitivi/titleeditor.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/titleeditor.py b/pitivi/titleeditor.py
index bea5a34..5827706 100644
--- a/pitivi/titleeditor.py
+++ b/pitivi/titleeditor.py
@@ -657,7 +657,7 @@ class TitleEditor(Loggable):
     def _fontButtonCb(self, widget):
         font_desc = widget.get_font_name().split(" ")
         font_face = " ".join(font_desc[:-1])
-        font_size = str(int(font_desc[-1]) * 1024)
+        font_size = str(int(float(font_desc[-1]) * 1024))
         text = "<span face='" + font_face + "'><span size='" + font_size + "'>text</span></span>"
         suc, a, t, s = Pango.parse_markup(text, -1, '\x00')
         ai = a.get_iterator()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]