Skip to content
Snippets Groups Projects
Commit 84868de7 authored by George Nachman's avatar George Nachman
Browse files

Remove some assertions that would fire in convertSelectionStartX...

parent 99dd2b98
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1158,13 +1158,19 @@ static BOOL XYIsBeforeXY(int px1, int py1, int px2, int py2) {
x = 0;
y++;
}
if (y >= [self numberOfLines]) {
y = [self numberOfLines] - 1;
x = WIDTH;
}
theLine = [self getLineAtIndex:y];
 
while (XYIsBeforeXY(*nonNullStartX, *nonNullStartY, x, y)) {
if (x == 0) {
x = WIDTH;
y--;
assert(y >= 0);
if (y < 0) {
break;
}
theLine = [self getLineAtIndex:y];
}
if (theLine[x - 1].code) {
Loading
Loading
@@ -1172,8 +1178,10 @@ static BOOL XYIsBeforeXY(int px1, int py1, int px2, int py2) {
}
x--;
}
assert(x >= 0);
assert(y >= 0);
while (x < 0) {
x += WIDTH;
y--;
}
 
*nonNullEndX = x;
*nonNullEndY = y;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment