Hi,
I ran into a bug while using DrawLine class.
If I draw a line, then draw a new one and start dragging the previous one the newest one disappears.
I fixed the bug by changing the code in DrawLine.java, line 533:
if(tmp != null) {
repositionLine(tmp);
}
to this one:
if(tmp != null && selected == null) {
repositionLine(tmp);
}
This seems to fix the bug but I am not 100% sure if this is the right solution.
Marian
DrawLine class dragging bug
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Marian,
Thanks for reporting. I could reproduce the issue here and added it together with your fix suggestion (TJ71012818) to our defect list to be reviewed and fixed for next versions.
Thanks for reporting. I could reproduce the issue here and added it together with your fix suggestion (TJ71012818) to our defect list to be reviewed and fixed for next versions.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hello Marian,
Thanks for the suggestion, your workaround does the job. The error occurs because between mousedown, mousemove and mouseup the tmp (current line) should be being reset and it's not. We'll rewrite this a little to correct the state between line selections and put the fix into the next maintenance update.
Thanks again.
Regards,
Marc Meumann
Thanks for the suggestion, your workaround does the job. The error occurs because between mousedown, mousemove and mouseup the tmp (current line) should be being reset and it's not. We'll rewrite this a little to correct the state between line selections and put the fix into the next maintenance update.
Thanks again.
Regards,
Marc Meumann
Steema Support