Skip to content
Permalink
Browse files

Fix symbol size when adding breaks to histogram for graduated size

renderer (fix #12952)
  • Loading branch information
nyalldawson committed Jun 16, 2015
1 parent d8b7796 commit 2458eaf8ccb942919574f53516c27e7ff17b0555
Showing with 11 additions and 3 deletions.
  1. +11 −3 src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
@@ -1454,9 +1454,17 @@ void QgsGraduatedSymbolRendererV2::addBreak( double breakValue, bool updateSymbo
}
}

if ( updateSymbols && mGraduatedMethod == GraduatedColor )
if ( updateSymbols )
{
updateColorRamp( mSourceColorRamp.data(), mInvertedColorRamp );
switch ( mGraduatedMethod )
{
case GraduatedColor:
updateColorRamp( mSourceColorRamp.data(), mInvertedColorRamp );
break;
case GraduatedSize:
setSymbolSizes( minSymbolSize(), maxSymbolSize() );
break;
}
}
}

@@ -1589,7 +1597,7 @@ bool QgsGraduatedSymbolRendererV2::rangesHaveGaps() const

for ( ; it != sortedRanges.constEnd(); ++it )
{
if ( !qgsDoubleNear( ( *it ).lowerValue(), prevMax ) )
if ( !qgsDoubleNear(( *it ).lowerValue(), prevMax ) )
return true;

prevMax = ( *it ).upperValue();

0 comments on commit 2458eaf

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