CComponentsInfoBox: fix image y pos

Image was not centered, because of frame was not considered.
This commit is contained in:
2017-06-15 01:01:54 +02:00
parent 85cff28f07
commit 9e2c5cb939

View File

@@ -124,7 +124,7 @@ void CComponentsInfoBox::paintPicture()
pic->doPaintBg(false); pic->doPaintBg(false);
//fit icon into frame //fit icon into frame
pic->setYPos(y_pic+(height/2-pic->getHeight()/2)); pic->setYPos(y_pic+(height-2*fr_thickness)/2-pic->getHeight()/2);
//paint, but set visibility mode //paint, but set visibility mode
pic->allowPaint(cc_allow_paint); pic->allowPaint(cc_allow_paint);