[Xcircuit-dev] Fix coredump in edit->rotate
Brought to you by:
rtedwards
From: Joerg W. <j...@id...> - 2005-09-14 12:19:26
|
Someone reported in a German newsgroup that xcircuit dumps core on the following sequence of operations: Open library, select first element, select with ">" for editing, then rotate with "r". The code attempted to evaluate a struct passed by value as a pointer. My first guess was that it was actually intented to pass a pointer to the struct instead. The following patch fixes this. --- events.c.orig Thu Sep 8 22:33:01 2005 +++ events.c Wed Sep 14 14:11:38 2005 @@ -2436,7 +2436,7 @@ pathptr rotatepath = SELTOPATH(selectobj); register_for_undo(XCF_Edit, UNDO_MORE, areastruct.topinstance, - *rotatepath); + rotatepath); for (genpart = rotatepath->plist; genpart < rotatepath->plist + rotatepath->parts; genpart++) elemrotate(genpart, direction); -- J"org Wunsch Unix support engineer joe...@in... http://www.interface-systems.de/~j/ |