mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
Fix symbol size when adding breaks to histogram for graduated size
renderer (fix #12952)
This commit is contained in:
parent
d8b7796952
commit
2458eaf8cc
@ -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 )
|
for ( ; it != sortedRanges.constEnd(); ++it )
|
||||||
{
|
{
|
||||||
if ( !qgsDoubleNear( ( *it ).lowerValue(), prevMax ) )
|
if ( !qgsDoubleNear(( *it ).lowerValue(), prevMax ) )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
prevMax = ( *it ).upperValue();
|
prevMax = ( *it ).upperValue();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user