Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuth Alkema2010-04-26 07:35:04 +0000
committerMatthias Sohn2010-04-26 12:55:18 +0000
commit345976fa143cf8e0b8d0fe8a6edf59df835faae8 (patch)
treebc1b1952114edeea299d87dedb04c3d961bd38f4
parent59b6c95492a13e818b6eb90d4427211586803700 (diff)
downloadegit-345976fa143cf8e0b8d0fe8a6edf59df835faae8.tar.gz
egit-345976fa143cf8e0b8d0fe8a6edf59df835faae8.tar.xz
egit-345976fa143cf8e0b8d0fe8a6edf59df835faae8.zip
Graphical tags in history view were not correctly aligned
This was only a problem when the history graph is not in the first column of the table Change-Id: Ieb3f4edce31858def42fc34676f4a7213b86f65e Signed-off-by: Ruth Alkema <ruth@diasoft.nl> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/SWTPlotRenderer.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/SWTPlotRenderer.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/SWTPlotRenderer.java
index 6f00905dff..042ad19cdb 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/SWTPlotRenderer.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/SWTPlotRenderer.java
@@ -142,18 +142,18 @@ class SWTPlotRenderer extends AbstractPlotRenderer<SWTLane, Color> {
final int texty = (y * 2 - textsz.y) / 2;
// Draw backgrounds
- g.fillRoundRectangle(x + 1, cellY + texty -1, textsz.x + 3, textsz.y + 1, arc, arc);
+ g.fillRoundRectangle(cellX + x + 1, cellY + texty -1, textsz.x + 3, textsz.y + 1, arc, arc);
g.setForeground(sys_black);
- g.drawString(txt, x + 2, cellY + texty, true);
+ g.drawString(txt,cellX + x + 2, cellY + texty, true);
g.setLineWidth(2);
// And a two color shaded border, blend with whatever background there already is
g.setAlpha(128);
g.setForeground(sys_gray);
- g.drawRoundRectangle(x, cellY + texty -2, textsz.x + 5, textsz.y + 3, arc, arc);
+ g.drawRoundRectangle(cellX + x, cellY + texty -2, textsz.x + 5, textsz.y + 3, arc, arc);
g.setLineWidth(2);
g.setForeground(sys_black);
- g.drawRoundRectangle(x + 1, cellY + texty -1, textsz.x + 3, textsz.y + 1, arc, arc);
+ g.drawRoundRectangle(cellX + x + 1, cellY + texty -1, textsz.x + 3, textsz.y + 1, arc, arc);
g.setAlpha(255);
if (peeledColor != null)

Back to the top