Skip to content
Permalink
Browse files

Fix for disappearing and inaccurate buffer previews in adv labeling

  • Loading branch information
dakcarto committed Aug 16, 2012
1 parent 47f5c52 commit ed988051e738cbaf88023d9c34782b2411032988
Showing with 5 additions and 1 deletion.
  1. +4 −0 src/app/qgslabelpreview.cpp
  2. +1 −1 src/app/qgslabelpreview.h
@@ -48,6 +48,10 @@ void QgsLabelPreview::paintEvent( QPaintEvent *e )
p.setFont( font() );
QFontMetrics fm( font() );

// otherwise thin buffers don't look like those on canvas
if ( mBufferSize != 0 && mBufferSize < 1 )
mBufferSize = 1;

double xtrans = 0;
if ( mBufferSize != 0 )
xtrans = mBufferSize / 4;
@@ -32,7 +32,7 @@ class QgsLabelPreview : public QLabel
void paintEvent( QPaintEvent* e );

private:
int mBufferSize;
double mBufferSize;
QColor mBufferColor;
Qt::PenJoinStyle mBufferJoinStyle;
bool mBufferNoFill;

0 comments on commit ed98805

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