Skip to content

Commit

Permalink
Remove minimum sizes in marker catalogue (patch from ticket #1912)
Browse files Browse the repository at this point in the history
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 f76bc2d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/core/symbology/qgsmarkercatalogue.cpp
Expand Up @@ -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:" ) )
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f76bc2d

Please sign in to comment.