Roxen.git/
server/
modules/
graphics/
gbutton.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-10-09
2001-10-09 16:58:44 by Martin Nilsson <mani@lysator.liu.se>
5c323edf481f6c97e4a54d3fe814af0e832614f7 (
9
lines) (+
5
/-
4
)
[
Show
|
Annotate
]
Branch:
5.2
Cast content to string. Fixes [bug
2385 (#2385)
].
Rev: server/modules/graphics/gbutton.pike:1.93
25:
// must also be aligned left or right.
-
constant cvs_version = "$Id: gbutton.pike,v 1.
92
2001/10/
08
12
:
32
:
53
anders
Exp $";
+
constant cvs_version = "$Id: gbutton.pike,v 1.
93
2001/10/
09
16
:
58
:
44
nilsson
Exp $";
constant thread_safe = 1; #include <module.h>
792:
// t = gethrtime(); string img_src = query_absolute_internal_location(id) +
-
button_cache->store( ({ new_args, content }), id);
+
button_cache->store( ({ new_args,
(string)
content }), id);
if(do_ext) img_src += "." + (new_args->format || "gif");
834:
[string img_src, mapping new_args]=mk_url(id); mapping img_attrs = ([ "src" : img_src,
-
"alt" : args->alt || content,
+
"alt" : args->alt ||
(string)
content,
"border" : args->border, "hspace" : args->hspace, "vspace" : args->vspace ]); if (img_align) img_attrs->align = img_align;
-
if (mapping size = button_cache->metadata( ({ new_args, content }),
+
if (mapping size = button_cache->metadata( ({ new_args,
(string)
content }),
id, 1)) { // Image in cache (1 above prevents generation on-the-fly, i.e. // first image will lack sizes).