Skip to content
Permalink
Browse files

fix wrong padding of QgsFontButton on macOS

(cherry picked from commit 61cdaad)
  • Loading branch information
iona5 authored and nyalldawson committed Dec 4, 2018
1 parent 4ea8bc5 commit 9fff1fb142848f58b62a881efcfe800a96160907
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/qgsfontbutton.cpp
@@ -773,6 +773,8 @@ void QgsFontButton::updatePreview( const QColor &color, QgsTextFormat *format, Q
//make sure height of icon looks good under different platforms
#ifdef Q_OS_WIN
mIconSize = QSize( buttonSize.width() - 10, height() - 6 );
#elif defined(Q_OS_MAC)
mIconSize = QSize( buttonSize.width() - 10, height() - 2 );
#else
mIconSize = QSize( buttonSize.width() - 10, height() - 12 );
#endif

0 comments on commit 9fff1fb

Please sign in to comment.
You can’t perform that action at this time.