Private
Public Access
Fixed inconsistency between error lines and rows
This commit is contained in:
1 parent
69dcf40da2
commit
4d54935615
1 file changed
+3
-1
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -103,6 +103,8 @@ namespace Advanced_Software_Engineering {
|
||||
private void updateRowCol() {
|
||||
int line = textBox1.GetLineFromCharIndex(textBox1.SelectionStart);
|
||||
int column = textBox1.SelectionStart - textBox1.GetFirstCharIndexFromLine(line);
|
||||
line++;
|
||||
column++;
|
||||
label1.Text = "row: " + line.ToString() + " col: " + column.ToString();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user