Skip to content

Commit 4b2fbb6

Browse files
committed
Fix ending position of EMO blocks in timeline
The ending coordinate of an EMO should be on the pixel before the pixel corresponding to its ending time (in other words, the beginning should be inclusive, the ending should be exclusive). Without this, a block that starts at the same time as the previous one ends would be misleadingly shown to overlap.
1 parent 9a07ac0 commit 4b2fbb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/projections/Tools/Timeline/EntryMethodObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ public boolean paintMe(Graphics2D g2d, final int actualDisplayWidth, final int t
850850
leftCoord = data.timeToScreenPixelLeft(data.startTime(), actualDisplayWidth);
851851

852852
// Determine the coordinates and sizes of the components of the graphical representation of the object
853-
int rectWidth = Math.max(1, rightCoord - leftCoord + 1);
853+
int rectWidth = Math.max(1, rightCoord - leftCoord);
854854
int rectHeight = data.barheight();
855855

856856
int left = leftCoord;

0 commit comments

Comments
 (0)