Skip to content
Permalink
Browse files

fix wrong padding of QgsFontButton on macOS

  • Loading branch information
iona5 authored and nyalldawson committed Dec 4, 2018
1 parent 930c56f commit 61cdaad5300ef922d35efbca042c2a09d77b63ff
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 61cdaad

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