OSDN Git Service

DrawLineNumberでしていることは同じなのでコントローラーに書くことにした
[fooeditengine/FooEditEngine.git] / Metro / FooEditEngine / FooTextBox.cs
index 51f0cd1..ebb25ea 100644 (file)
@@ -1114,10 +1114,7 @@ namespace FooEditEngine.Metro
             if (e.Property.Equals(DrawCaretLineProperty))
                 source.View.HideLineMarker = !source.DrawCaretLine;
             if (e.Property.Equals(DrawLineNumberProperty))
-            {
                 source.Document.DrawLineNumber = source.DrawLineNumber;
-                source._Controller.JumpCaret(source.Document.CaretPostion.row, source.Document.CaretPostion.col);
-            }
             if(e.Property.Equals(MagnificationPowerPropertyKey))
                 source.Render.FontSize = source.FontSize * source.MagnificationPower;
             if (e.Property.Equals(FontFamilyProperty))