We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47f5c52 commit ed98805Copy full SHA for ed98805
src/app/qgslabelpreview.cpp
@@ -48,6 +48,10 @@ void QgsLabelPreview::paintEvent( QPaintEvent *e )
48
p.setFont( font() );
49
QFontMetrics fm( font() );
50
51
+ // otherwise thin buffers don't look like those on canvas
52
+ if ( mBufferSize != 0 && mBufferSize < 1 )
53
+ mBufferSize = 1;
54
+
55
double xtrans = 0;
56
if ( mBufferSize != 0 )
57
xtrans = mBufferSize / 4;
src/app/qgslabelpreview.h
@@ -32,7 +32,7 @@ class QgsLabelPreview : public QLabel
32
void paintEvent( QPaintEvent* e );
33
34
private:
35
- int mBufferSize;
+ double mBufferSize;
36
QColor mBufferColor;
37
Qt::PenJoinStyle mBufferJoinStyle;
38
bool mBufferNoFill;
0 commit comments