1
0
Fork 0

FIXED: uninitialized variable was used for height calculation and caused negative height value (registers view)

This commit is contained in:
Wolfgang Schoechl 2018-10-12 21:06:32 +02:00 committed by Duncan Ogilvie
parent 28211215e7
commit 753ecd3ba5
1 changed files with 3 additions and 2 deletions

View File

@ -1447,10 +1447,11 @@ void RegistersView::fontsUpdatedSlot()
wRowsHeight = (wRowsHeight % 2) == 0 ? wRowsHeight : wRowsHeight + 1;
mRowHeight = wRowsHeight;
mCharWidth = QFontMetrics(this->font()).averageCharWidth();
//adjust the height of the area.
setFixedHeight(getEstimateHeight());
//reload layout because the layout is dependent on the font.
InitMappings();
//adjust the height of the area.
setFixedHeight(getEstimateHeight());
reload();
}