gucharmap r1765 - trunk/gucharmap



Author: chpe
Date: Mon Mar 31 12:45:09 2008
New Revision: 1765
URL: http://svn.gnome.org/viewvc/gucharmap?rev=1765&view=rev

Log:
Use get_font_size here.


Modified:
   trunk/gucharmap/gucharmap-mini-fontsel.c

Modified: trunk/gucharmap/gucharmap-mini-fontsel.c
==============================================================================
--- trunk/gucharmap/gucharmap-mini-fontsel.c	(original)
+++ trunk/gucharmap/gucharmap-mini-fontsel.c	Mon Mar 31 12:45:09 2008
@@ -395,9 +395,11 @@
 {
   int size, new_size;
 
-  size = pango_font_description_get_size (fontsel->font_desc);
+  g_return_if_fail (factor > 0.0f);
+
+  size = get_font_size (fontsel);
+  new_size = (float) size * factor;
 
-  new_size = (float) size * factor / (float) PANGO_SCALE;
   if (factor > 1.0f)
     new_size = MAX (new_size, size + 1);
   else if (factor < 1.0f)



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