OSDN Git Service

ラインマーカーはそれぞれの行の高さに合わせるべきだった
authortest <test@yahoo.co.jp>
Mon, 4 Jan 2021 04:59:44 +0000 (13:59 +0900)
committertest <test@yahoo.co.jp>
Mon, 4 Jan 2021 04:59:44 +0000 (13:59 +0900)
Core/EditView.cs

index 4a96730..af89761 100644 (file)
@@ -474,7 +474,7 @@ namespace FooEditEngine
                 return;
             IEditorRender render = (IEditorRender)base.render;
             Point p = this.CaretLocation;
-            double height = this.LayoutLines.GetLayout(this.Document.CaretPostion.row).Height;
+            double height = this.LayoutLines.GetLineHeight(this.Document.CaretPostion);
             double width = this.render.TextArea.Width;
             render.FillRectangle(new Rectangle(this.PageBound.X + this.render.TextArea.X, this.CaretLocation.Y, width, height), FillRectType.LineMarker);
         }
@@ -489,7 +489,7 @@ namespace FooEditEngine
             double width = layout.GetWidthFromIndex(this.Document.CaretPostion.col);
             if (width == 0.0)
                 width = this.CaretWidthOnInsertMode;
-            double height = this.render.emSize.Height;
+            double height = this.LayoutLines.GetLineHeight(this.Document.CaretPostion);
             Rectangle updateRect = new Rectangle(
                 this.CaretLocation.X,
                 this.CaretLocation.Y,