mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-89153 diff: fix offset
This commit is contained in:
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user