DrawLine class dragging bug
Posted: Wed Feb 13, 2008 3:58 pm
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
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