Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001009graphvizDotty/Lneato/Leftypublic2005-11-30 04:432011-04-28 04:03
ReporterToshihiro Kamiya 
Assigned Toerg 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-OS Version
Summary0001009: A strange code in cmd/lefty/ws/gtk/gcanvas.c
Description



Hi,



I found some strange code in cmd/lefty/ws/gtk/gcanvac.c.



594: for (i = 1; i < gpn; i++) {
595: gr.o.x = min(gr.o.x, gpp[i].x);
596: gr.o.y = min(gr.o.y, gpp[i].y);
597: gr.c.x = max(gr.c.x, gpp[i].x);
598: gr.c.x = max(gr.c.x, gpp[i].y);
599: }



The field names in line 598 look wrong.



This code seems to be a copy of the following code
in cmd/lefty/ws/mswin32/gcanvas.c.



575: for (i = 1; i < gpn; i++) {
576: gr.o.x = min (gr.o.x, gpp[i].x);
577: gr.o.y = min (gr.o.y, gpp[i].y);
578: gr.c.x = max (gr.c.x, gpp[i].x);
579: gr.c.y = max (gr.c.y, gpp[i].y);
580: }



The original code looks fine.



Sincerely yours,
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT 598: gr.c.y = max(gr.c.y, gpp[i].y);
FORMER-ID830
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (30 Nov 2005)
VERSION     2.7.20051130.0540
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => erg


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker