Skip to content

Commit f76bc2d

Browse files
author
mhugent
committed
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
1 parent c3896f9 commit f76bc2d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/core/symbology/qgsmarkercatalogue.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,6 @@ QImage QgsMarkerCatalogue::imageMarker( QString fullName, double size, QPen pen,
118118
// First prepare the paintdevice that the marker will be drawn onto
119119
//
120120

121-
// Introduce a minimum size, we don't want it to disappear.
122-
if ( size < 4 )
123-
{
124-
size = 4;
125-
}
126-
127121
QImage myImage;
128122
int imageSize;
129123
if ( fullName.startsWith( "hard:" ) )
@@ -311,8 +305,7 @@ void QgsMarkerCatalogue::hardMarker( QPainter * thepPainter, int imageSize, QStr
311305

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

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

0 commit comments

Comments
 (0)