gnome-terminal r2839 - trunk/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r2839 - trunk/src
- Date: Thu, 29 May 2008 19:59:06 +0000 (UTC)
Author: chpe
Date: Thu May 29 19:59:06 2008
New Revision: 2839
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2839&view=rev
Log:
Fix zoom size check.
Modified:
trunk/src/terminal-app.c
Modified: trunk/src/terminal-app.c
==============================================================================
--- trunk/src/terminal-app.c (original)
+++ trunk/src/terminal-app.c Thu May 29 19:59:06 2008
@@ -43,6 +43,8 @@
#define FALLBACK_PROFILE_ID "Default"
+#define EPSILON (1.0e-6)
+
/* Settings storage works as follows:
* /apps/gnome-terminal/global/
* /apps/gnome-terminal/profiles/Foo/
@@ -1278,8 +1280,7 @@
}
zoom = terminal_screen_get_font_scale (screen);
- /* FIXMEchpe this looks wrong... */
- if (zoom < -1e-6 || zoom > 1e-6) /* if not 1.0 */
+ if (zoom < (1.0 - EPSILON) || (zoom > 1.0 + EPSILON)) /* if not 1.0 */
{
char buf[G_ASCII_DTOSTR_BUF_SIZE];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]