Start wrapped-link selection test inside the first link line
This commit is contained in:
1 parent
17179c9c4a
commit
69442dcbb8
1 file changed
+1
-1
@@ -41,7 +41,7 @@ private slots:
|
||||
for (int y = 10; y < option.rect.height(); y += 8) {
|
||||
for (int x = 10; x < view.viewport()->width(); x += 16) {
|
||||
const QString link = delegate.inviteLinkAt(option, index, QPoint(x, y));
|
||||
if (link == first) { firstPoint = QPoint(x, y); firstRows.insert(y); }
|
||||
if (link == first) { if (firstPoint.isNull()) firstPoint = QPoint(x, y); firstRows.insert(y); }
|
||||
else if (link == second) secondPoint = QPoint(x, y);
|
||||
else QVERIFY(link.isEmpty());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user