Package: libimlib2
Version: 1.4.4-1
Severity: normal

Attempting to draw a 2x1 radii ellipse with imlib_image_draw_ellipse()
per foo.c below gets a SIGFPE floating point exception.

It seems happy enough to draw 1x1, 1x2 and 2x2, but not 2x1.

(The "convert" in the program is from imagemagick, just a handy way to
see the png as text.)


#include <stdio.h>
#include <stdlib.h>
#include <Imlib2.h>

int
main (void)
{
  Imlib_Image im;
  Imlib_Load_Error err;

  im = imlib_create_image(10,10);
  imlib_context_set_image(im);
  imlib_context_set_anti_alias(0);

  imlib_image_draw_ellipse (4,4, 2,1);

  imlib_image_set_format("png");
  imlib_save_image_with_error_return("/tmp/x.png", &err);
  if (err != 0) {
    printf ("save error %d\n", err);
  } else {
    system("convert /tmp/x.png /tmp/x.xpm && cat /tmp/x.xpm");
  }
  exit(0);
}



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-486
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages libimlib2 depends on:
ii  libbz2-1.0              1.0.5-6          high-quality block-sorting file co
ii  libc6                   2.13-10          Embedded GNU C Library: Shared lib
ii  libfreetype6            2.4.4-2          FreeType 2 font engine, shared lib
ii  libgif4                 4.1.6-9          library for GIF images (library)
ii  libid3tag0              0.15.1b-10       ID3 tag reading library from the M
ii  libjpeg62               6b1-2            Independent JPEG Group's JPEG runt
ii  libpng12-0              1.2.46-3         PNG library - runtime
ii  libtiff4                3.9.5-1          Tag Image File Format (TIFF) libra
ii  libx11-6                2:1.4.3-2        X11 client-side library
ii  libxext6                2:1.3.0-3        X11 miscellaneous extension librar
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

libimlib2 recommends no packages.

libimlib2 suggests no packages.

-- no debconf information

Reply via email to