This commit is contained in:
Twan van Laarhoven
2020-05-25 22:51:10 +02:00
parent 0da7a38eb2
commit dc336e20f0
+1 -1
View File
@@ -384,7 +384,7 @@ TextLayoutP TextViewer::extractLayoutInfo() const {
}
}
for (size_t i=0; i+1 < layout->blocks.size() ; ++i) {
layout->separators.push_back((layout->blocks[i]->bottom() + layout->blocks[i]->top)/2);
layout->separators.push_back((layout->blocks[i]->bottom() + layout->blocks[i+1]->top)/2);
}
return layout;
}