Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171409 - media-gfx/graphviz-2.12 generates wrong cmapx with circle, radius is false
Summary: media-gfx/graphviz-2.12 generates wrong cmapx with circle, radius is false
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on: 194749
Blocks:
  Show dependency tree
 
Reported: 2007-03-19 09:14 UTC by Grimbert Jérôme
Modified: 2007-12-16 22:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grimbert Jérôme 2007-03-19 09:14:56 UTC
When generating a cmapx map (for web-clicking on images), the new 2.12 outputs circle shape for circle node (that's fine, 2.8 outputted rectangle, even for circle, so circle is better to avoid overlap, 2.12 is right for that), BUT the radius computation for the circle is wrong.

It looks like the circle parameters are using some coordinates from the rectangular previous bounding box as the radius specification for the circle shape.
Center of the circle is fine, but radius is not.

I presume that the rectangle generatiion outputs something like "x_corner, y_corner, x_corner+witdh, y_corner+height", and currently it might be that the circle generation outputs "x_center, y_center, x_center+radius"... 
Obviously, it should be "x_center, y_center, radius"

Reproducible: Always

Steps to Reproduce:
1. make a foo.dot file with URL:

digraph xml { 
nodesep=1
ranksep=0.2
bgcolor=transparent
topology[label="Description\nof the\nTopology"]
command[label="Script\nof\nCommand"]
ne[label="Individial\nSimulated\nNetwork\nElement",peripheries=3]
node[shape=circle,style=bold]
net[label="Network\nEmulator\nController",URL="doc/interface.html"]
node[shape=box,style=solid]
xml_topo[label="XML\n<TOPOLOGY>",URL="doc/xml_topology.html"]
xml_scri[label="XML\n<SCRIPT>",URL="doc/xml_script.html"]
xml_ne[label="XML\n<SIMULATOR>",peripheries=3,URL="doc/xml_simulator.html"]

edge[fontcolor=blue]
topology->xml_topo->net
command->xml_scri->net
net->xml_ne[label=" One file per Network Element"]
xml_ne->ne[label=" Each Network Element knows only its own file"]
 
}

2.      dot -Tpng -o foo.png -Tcmapx -o foo.map foo.dot

3. look at the foo.map file.

Actual Results:  
<map id="xml" name="xml">
<area shape="rect" href="doc/xml_topology.html" title="XML\n&lt;TOPOLOGY&gt;" alt="" coords="5,141,149,197"/>
<area shape="rect" href="doc/xml_script.html" title="XML\n&lt;SCRIPT&gt;" alt="" coords="249,141,356,197"/>
<area shape="circle" href="doc/interface.html" title="Network\nEmulator\nController" alt="" coords="204,292,274"/>
<area shape="rect" href="doc/xml_simulator.html" title="XML\n&lt;SIMULATOR&gt;" alt="" coords="117,408,291,485"/>
<area shape="rect" title=" One file per Network Element" alt="" coords="200,359,208,367"/>
<area shape="rect" title=" One file per Network Element" alt="" coords="200,404,208,412"/>
<area shape="rect" title=" Each Network Element knows only its own file" alt="" coords="200,481,208,489"/>
<area shape="rect" title=" Each Network Element knows only its own file" alt="" coords="200,527,208,535"/>
</map>

Expected Results:  
<map id="xml" name="xml">
<area shape="rect" href="doc/xml_topology.html" title="XML\n&lt;TOPOLOGY&gt;" alt="" coords="5,141,149,197"/>
<area shape="rect" href="doc/xml_script.html" title="XML\n&lt;SCRIPT&gt;" alt="" coords="249,141,356,197"/>
<area shape="circle" href="doc/interface.html" title="Network\nEmulator\nController" alt="" coords="204,292,70"/>
<area shape="rect" href="doc/xml_simulator.html" title="XML\n&lt;SIMULATOR&gt;" alt="" coords="117,408,291,485"/>
<area shape="rect" title=" One file per Network Element" alt="" coords="200,359,208,367"/>
<area shape="rect" title=" One file per Network Element" alt="" coords="200,404,208,412"/>
<area shape="rect" title=" Each Network Element knows only its own file" alt="" coords="200,481,208,489"/>
<area shape="rect" title=" Each Network Element knows only its own file" alt="" coords="200,527,208,535"/>
</map>

media-gfx/graphviz-2.12  USE="X gnome gtk nls pango perl python ruby tcl tk -doc -examples"

emerge --info hereafter (I do not believe it is relevant):

Portage 2.1.2.2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r6 i686)
=================================================================
System uname: 2.6.18-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 09 Mar 2007 13:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="fr en_GB ja_JP fr_FR@euro fr_FR ja"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="16bit 64bit 7zip X X509 accessibility alsa apache2 apm applet aqua_theme arts artworkextra asterisk audiofile bash-completion berkdb bitmap-fonts bonobo bzip2 c++ cairo carbone_theme cdio cdparanoia cdrom cjk cli cpudetection cracklib crypt cscope cups cvs cvsgraph devil dri dynagraph eds emboss encode epiphany esd ethereal festival ffmpeg font-server fontconfig foomaticdb fortran ftp gcj gdbm gif gimp gimpprint gnome gnome-print gnomecanvas gnomedb gnuplot gnustep gnutls gpm graphviz gstreamer gtk gtk2 gtkhtml gvim gzip h323 hal iconv imagemagick imlib ipv6 isdnlog java jpeg kde libg++ libwww lm_sensors lpr mad mbrola midi mikmod mime mmap mmx mmxext mng motif mozilla mp3 mp4 mp4live mpe mpeg mpeg2 mplayer multiuser nautilus ncurses netgraph network new-login nls nptl nptlonly nsplugin objc offensive ogg oggvorbis opengl oss pam pcre pdf perl png pppd python qt3 qt4 quicktime readline reflection ruby samba sdl session sockets speech spell spl sse sse-filters sse2 ssl svg svgz swat sysfs szip tcltk tcpd threads tiff truetype truetype-fonts type1 type1-fonts unicode unzip upnp utf8 v4l2 vcd videos vim vim-pager vim-with-x vorbis vorbis-psy wmf wxwindows x264 x86 xanim xface xine xinerama xml xorg xosd xpm xprint xscreensaver xsettings xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en_GB ja_JP fr_FR@euro fr_FR ja" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Grimbert Jérôme 2007-09-08 06:41:21 UTC
It looks like it has been corrected upstream in 2.14
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2007-12-16 22:48:38 UTC
Fixed in 2.16.1.