.
D 2003-05-07T14:33:45
J assignee dkf
J cmimetype text/plain
J comment Hi,\n\nthere\sis\sa\sbug\sin\stkCanvPoly.c:PolygonToPostscript\sin\s\nrecent\sTk\sVersions\s(tested\s8.3.5,\s8.4.2).\n\n\nCreate\sa\spolygon\swith\stwo\sidentical\spoints\sand\sno\noutline\scolor\s(I\sknow\sthis\sseems\sto\sbe\snonsense,\nbut\sin\smy\scase\sit\swas\sabsolutely\sneeded).\nDo\sa\spostscript\scommand\son\sthe\scanvas\sand\syou\sget\sthe\ncore\sdump\s(a\scolor\nNULL\spointer\sis\spassed\son\sfrom\sPolygonToPostscript\sto\nTk_PostscriptColor,\swhere\sit\sis\sreferenced)\n\n\n15:09[wilm@rubin:ConStruct3]$\swish\n.wishrc\s.wishrc\s.wishrc\s...\n%\scanvas\s.c\n.c\n%\spack\s.c\n%\s.c\screate\spolygon\s10\s20\s10\s20\n1\n%\s.c\spostscript\nSegmentation\sfault\n\n\n\n\nSetting\sthe\soutline\ssets\sthe\scolor\spointer\sto\snon-NULL:\n\n15:41[wilm@rubin:ConStruct3]$\s\swish\n.wishrc\s.wishrc\s.wishrc\s...\n%\s\scanvas\s.c\n.c\n%\spack\s.c\n%\s.c\screate\spolygon\s10\s20\s10\s20\s-outline\sblack\n1\n%\s.c\spostscript\n%!PS-Adobe-3.0\sEPSF-3.0\n...\n\n\n\nTo\savoid\sthis\screate\sa\spolygon\swith\s3\spoints\s(using\stwo\ndifferent\spoints\nactivates\sexpansion\sto\sthree\spoints\sand\scirumvents\sthe\nfaulty\sif-clause\sas\swell):\n\n16:04[wilm@rubin:ConStruct3]$\swish\n.wishrc\s.wishrc\s.wishrc\s...\n%\scanvas\s.c\n.c\n%\spack\s.c\n%\s.c\screate\spolygon\s10\s20\s10\s20\s10\s20\s\n1\n%\s.c\spostscript\n%!PS-Adobe-3.0\sEPSF-3.0\n...\n\n\nThe\sreason\sfor\sthis\sbu\sis\sthe\sfollowing:\nIf\sonly\stwo\spoints\sexist,\sspecial\scase\scode\sis\sused\sto\ncreate\sa\sline\sand\sthe\scolor\nis\snot\sverfified\sto\sbe\svalid.\n\nTo\spatch\sthis\sjust\scheck\sif\scolor==NULL\sin\scase\npolyPtr->numPoints==2\sand\sreturn\sTCL_OK\nSee\sattachment.\n\nAndreas
J foundin final:\s8.3.5
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 18.\sCommands\sM-Z
J title canvas\spostscript\scommand\score\sdumps\son\sspecial\spolygon
J type Bug
K 733911ffffffffffffffffffffffffffffffffff
U nobody
Z 4e9ec01a140ea9c39733f57852b8f65c