OSDN Git Service
(root)
/
fooeditengine
/
FooEditEngine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
特定条件で拡大すると落ちることがあった
[fooeditengine/FooEditEngine.git]
/
Core
/
ViewBase.cs
diff --git
a/Core/ViewBase.cs
b/Core/ViewBase.cs
index
18e0219
..
b3fc675
100644
(file)
--- a/
Core/ViewBase.cs
+++ b/
Core/ViewBase.cs
@@
-329,6
+329,8
@@
namespace FooEditEngine
if (row < 0)
return true;
int totalRow = this.LayoutLines.Count - 1 - this.LineCountOnScreen;
+ if (totalRow < 0)
+ totalRow = 0;
if (row > totalRow)
row = totalRow;
this.Document.Src = new SrcPoint(total.X, row, total.Y);