diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp index af19fa312..f47960c1d 100644 --- a/src/gui/folderstatusdelegate.cpp +++ b/src/gui/folderstatusdelegate.cpp @@ -57,7 +57,7 @@ QSize FolderStatusDelegate::sizeHint(const QStyleOptionViewItem & option , auto classif = static_cast(index.model())->classify(index); if (classif == FolderStatusModel::AddButton) { - int margins = fm.height(); + const int margins = aliasFm.height(); // same as 2*aliasMargin of paint QFontMetrics fm(option.font); QStyleOptionButton opt; static_cast(opt) = option;