[vte] widget: Clamp font scale
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Clamp font scale
- Date: Sun, 6 Apr 2014 14:13:54 +0000 (UTC)
commit b87ccc6f2c2eaf3eb457fc412a278be0fe39d980
Author: Christian Persch <chpe gnome org>
Date: Sun Apr 6 15:41:37 2014 +0200
widget: Clamp font scale
Only clamp the font scale, but don't issue a critical warning.
src/vte.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index efb95fe..34dc621 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -7644,7 +7644,6 @@ vte_terminal_set_font_scale(VteTerminal *terminal,
gdouble scale)
{
g_return_if_fail(VTE_IS_TERMINAL(terminal));
- g_return_if_fail(scale >= VTE_FONT_SCALE_MIN && scale <= VTE_FONT_SCALE_MAX);
terminal->pvt->font_scale = CLAMP(scale, VTE_FONT_SCALE_MIN, VTE_FONT_SCALE_MAX);
vte_terminal_update_font(terminal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]