gucharmap r1765 - trunk/gucharmap
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gucharmap r1765 - trunk/gucharmap
- Date: Mon, 31 Mar 2008 12:45:10 +0100 (BST)
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]