Commit 309be51f authored by Tomaz  Canabrava's avatar Tomaz Canabrava
Browse files

Off by one error in the loop

parent 7fda6d28
......@@ -163,7 +163,7 @@ void DetachableTabBar::paintEvent(QPaintEvent *event)
QPainter painter(this);
painter.setPen(Qt::NoPen);
for (int tabIndex = 0; tabIndex <= count(); tabIndex++) {
for (int tabIndex = 0; tabIndex < count(); tabIndex++) {
QColor varColor = tabData(tabIndex).value<QColor>();
if (!varColor.isValid()) {
continue;
......
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