[goffice] Font Selector: clamp size to 2pt.



commit ac77f9fdcc135cb409454f27df7585df3c37e713
Author: Morten Welinder <terra gnome org>
Date:   Mon Mar 18 14:45:11 2013 -0400

    Font Selector: clamp size to 2pt.

 goffice/gtk/go-font-sel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/goffice/gtk/go-font-sel.c b/goffice/gtk/go-font-sel.c
index 99c9f30..fefd424 100644
--- a/goffice/gtk/go-font-sel.c
+++ b/goffice/gtk/go-font-sel.c
@@ -694,7 +694,7 @@ cb_size_picker_acticated (GtkEntry *entry, GOFontSel *gfs)
        if (text != end && errno != ERANGE) {
                int psize;
 
-               size = CLAMP (size, 0.0, 1000.0);
+               size = CLAMP (size, 2.0, 1000.0);
                size = floor ((size * 10.) + .5) / 10.; /* round .1 */
                psize = pango_units_from_double (size);
 


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