Skip to content

Commit

Permalink
fix wrong padding of QgsFontButton on macOS
Browse files Browse the repository at this point in the history
(cherry picked from commit 61cdaad)
  • Loading branch information
iona5 authored and nyalldawson committed Dec 4, 2018
1 parent 4ea8bc5 commit 9fff1fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsfontbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9fff1fb

Please sign in to comment.