--- parser3/src/classes/image.C 2016/10/26 19:10:31 1.155 +++ parser3/src/classes/image.C 2016/11/01 23:10:40 1.157 @@ -25,7 +25,7 @@ #include "pa_vdate.h" #include "pa_table.h" -volatile const char * IDENT_IMAGE_C="$Id: image.C,v 1.155 2016/10/26 19:10:31 moko Exp $"; +volatile const char * IDENT_IMAGE_C="$Id: image.C,v 1.157 2016/11/01 23:10:40 moko Exp $"; // defines @@ -527,7 +527,7 @@ static Value* parse_IFD_entry_value(bool { reader.seek(tiff_base+endian_to_uint(is_big, entry.value_or_offset_to_it), SEEK_SET); const char* value; - if(reader.read(value, value_size)(append_attrib_pair, &info); } tag << " />"; - r.write_pass_lang(tag); + r.write(tag); } /// @test wrap FILE to auto-object @@ -830,7 +830,7 @@ static void _gif(Request& r, MethodParam vfile.set_binary(false/*not tainted*/, (const char *)buf.ptr, buf.size, file_name, new VString(*new String("image/gif"))); - r.write_no_lang(vfile); + r.write(vfile); } static void _line(Request& r, MethodParams& params) { @@ -1117,7 +1117,7 @@ static void _length(Request& r, MethodPa const String& s=params.as_string(0, "text must not be code"); VImage& vimage=GET_SELF(r, VImage); - r.write_no_lang(*new VInt(vimage.font().string_width(s))); + r.write(*new VInt(vimage.font().string_width(s))); } static void _arc(Request& r, MethodParams& params) { @@ -1202,7 +1202,7 @@ static void _pixel(Request& r, MethodPar image.SetPixel(x, y, image.Color(params.as_int(2, "color must be int", r))); } else - r.write_no_lang(*new VInt(image.DecodeColor(image.GetPixel(x, y)))); + r.write(*new VInt(image.DecodeColor(image.GetPixel(x, y)))); }