From ae933affc0258dfc448f75f1fcddc96d44702f93 Mon Sep 17 00:00:00 2001 From: Dmitry Batrak Date: Wed, 1 Apr 2015 12:57:12 +0300 Subject: [PATCH] fix border painting for empty region (IDEABKL-5810) --- .../com/intellij/openapi/editor/impl/view/EditorPainter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/editor/impl/view/EditorPainter.java b/platform/platform-impl/src/com/intellij/openapi/editor/impl/view/EditorPainter.java index a3e6b83e5c20..0ced04a36a4e 100644 --- a/platform/platform-impl/src/com/intellij/openapi/editor/impl/view/EditorPainter.java +++ b/platform/platform-impl/src/com/intellij/openapi/editor/impl/view/EditorPainter.java @@ -569,7 +569,7 @@ class EditorPainter { for (LineLayout.Fragment fragment : lineLayout.getFragmentsInVisualOrder()) { if (startOffset == endOffset) { if (startOffset >= fragment.getStartOffset() && startOffset <= fragment.getEndOffset()) { - x = fragment.absoluteOffsetToX(x, startOffset - fragment.getVisualStartOffset()); + x = fragment.absoluteOffsetToX(x, startOffset); result.add(x); result.add(x); break;