Commit 592cbd61 authored by Tomaz  Canabrava's avatar Tomaz Canabrava
Browse files

Prevent crash

parent 1993adfb
......@@ -433,6 +433,10 @@ namespace {
QList<int> allSplitterSizes;
int search_closest(const QList<int>& sorted_array, int x) {
if (sorted_array.isEmpty()) {
return -1;
}
auto iter_geq = std::lower_bound(
sorted_array.begin(),
sorted_array.end(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment