Skip to content
Permalink
Browse files
Remove minimum sizes in marker catalogue (patch from ticket #1912)
git-svn-id: http://svn.osgeo.org/qgis/trunk@13161 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Mar 25, 2010
1 parent c3896f9 commit f76bc2d0ee93108071cbd6154ed47ccbc522159b
Showing with 1 addition and 8 deletions.
  1. +1 −8 src/core/symbology/qgsmarkercatalogue.cpp
@@ -118,12 +118,6 @@ QImage QgsMarkerCatalogue::imageMarker( QString fullName, double size, QPen pen,
// First prepare the paintdevice that the marker will be drawn onto
//

// Introduce a minimum size, we don't want it to disappear.
if ( size < 4 )
{
size = 4;
}

QImage myImage;
int imageSize;
if ( fullName.startsWith( "hard:" ) )
@@ -311,8 +305,7 @@ void QgsMarkerCatalogue::hardMarker( QPainter * thepPainter, int imageSize, QStr

QgsDebugMsgLevel( QString( "Hard marker radius %1" ).arg( r ), 3 );

// If radius is 0, draw a circle, so it wont disappear.
if ( name == "circle" || r < 1 )
if ( name == "circle" )
{
// "A stroked ellipse has a size of rectangle.size() plus the pen width."
// (from Qt doc)

0 comments on commit f76bc2d

Please sign in to comment.