projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f1fc98
)
Do not display ... if not truncated.
author
Laurent Monin
<geeqie@norz.org>
Thu, 10 Apr 2008 11:31:20 +0000
(11:31 +0000)
committer
Laurent Monin
<geeqie@norz.org>
Thu, 10 Apr 2008 11:31:20 +0000
(11:31 +0000)
src/image-overlay.c
patch
|
blob
|
history
diff --git
a/src/image-overlay.c
b/src/image-overlay.c
index
0cec98a
..
7688cb0
100644
(file)
--- a/
src/image-overlay.c
+++ b/
src/image-overlay.c
@@
-158,7
+158,7
@@
static gchar *image_osd_mkinfo(const gchar *str, ImageWindow *imd, GHashTable *v
trunc = p;
break;
}
- was_digit =
(*p >= '0' && *p <= '9'
);
+ was_digit =
g_ascii_isdigit(*p
);
}
if (trunc) limit = atoi(trunc+1);
@@
-169,7
+169,7
@@
static gchar *image_osd_mkinfo(const gchar *str, ImageWindow *imd, GHashTable *v
data = g_strdup(g_hash_table_lookup(vars, name));
if (!data && exif)
data = exif_get_data_as_text(exif, name);
- if (data && *data && limit > 0)
+ if (data && *data && limit > 0
&& strlen(data) > limit + 3
)
{
gchar *new_data = g_strdup_printf("%-*.*s...", limit, limit, data);
g_free(data);