Skip to content

Commit feb99ca

Browse files
committed
Compile fix, cast to QRectF first then adjust
1 parent 0c8ca76 commit feb99ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qrenderdoc/Styles/RDStyle/RDStyle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@ void RDStyle::drawControl(ControlElement control, const QStyleOption *opt, QPain
17101710

17111711
if(!(opt->state & State_Selected))
17121712
{
1713-
QRectF bottomLine = opt->rect.adjusted(0, 0.5, 0, 0);
1713+
QRectF bottomLine = QRectF(opt->rect).adjusted(0, -0.5, 0, 0);
17141714
p->drawLine(bottomLine.bottomLeft(), bottomLine.bottomRight());
17151715
}
17161716

0 commit comments

Comments
 (0)