IDEA-89153 diff: fix offset

This commit is contained in:
Aleksey Pivovarov
2014-09-25 19:41:29 +04:00
parent 4bdf2fb4eb
commit 6a5ba163c8
2 changed files with 2 additions and 2 deletions
@@ -172,7 +172,7 @@ public abstract class DiffMarkup implements EditorSource, Disposable {
marker.setLineSeparatorRenderer(new LineSeparatorRenderer() {
@Override
public void drawLine(Graphics g, int x1, int x2, int y) {
x2 = g.getClipBounds().width - x1;
x2 = g.getClipBounds().width;
if (type.isInlineWrapper()) {
UIUtil.drawLine((Graphics2D)g, x1, y, x2, y, null, DiffUtil.getFramingColor(color));
}
@@ -136,7 +136,7 @@ public class ChangeType {
Graphics2D g2 = (Graphics2D)g;
Color color = myDiffType.getPolygonColor(markup.getEditor());
if (color != null) {
x2 = g.getClipBounds().width - x1;
x2 = g.getClipBounds().width;
if (type.isApplied()) {
UIUtil.drawBoldDottedLine(g2, x1, x2, y, null, color, false);
}