mirror of https://github.com/buggins/dlangide.git
fix crash of incorrect dub.json file
This commit is contained in:
parent
63e88aeada
commit
0e79cf5e49
|
@ -162,7 +162,7 @@ class CompilerLogWidget : LogWidget {
|
||||||
if (row < 0)
|
if (row < 0)
|
||||||
row = 0;
|
row = 0;
|
||||||
int col = 0;
|
int col = 0;
|
||||||
if (match[3]) {
|
if (match[3] && match[3] != "") {
|
||||||
col = to!int(match[3]) - 1;
|
col = to!int(match[3]) - 1;
|
||||||
if (col < 0)
|
if (col < 0)
|
||||||
col = 0;
|
col = 0;
|
||||||
|
@ -370,4 +370,4 @@ class OutputPanel : DockWindow {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue