Skip to content

Commit 61cdaad

Browse files
iona5nyalldawson
authored andcommittedDec 4, 2018
fix wrong padding of QgsFontButton on macOS
1 parent 930c56f commit 61cdaad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/gui/qgsfontbutton.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,8 @@ void QgsFontButton::updatePreview( const QColor &color, QgsTextFormat *format, Q
773773
//make sure height of icon looks good under different platforms
774774
#ifdef Q_OS_WIN
775775
mIconSize = QSize( buttonSize.width() - 10, height() - 6 );
776+
#elif defined(Q_OS_MAC)
777+
mIconSize = QSize( buttonSize.width() - 10, height() - 2 );
776778
#else
777779
mIconSize = QSize( buttonSize.width() - 10, height() - 12 );
778780
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.