Opened 15 years ago

Closed 15 years ago

#1896 closed patch (fixed)

Adjustment to the method of returning symbols

Reported by: gislab Owned by: nobody
Priority: minor: annoyance Milestone: Version 1.3.0
Component: Symbology Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

To return list of symbols in the method QgsUniqueValueRenderer::symbols() it is cycling through (QMap<QString, QgsSymbol*> mSymbols). This patch makes list return using method QMap::values() (inline). This is also much faster.

Courtesy Jack, translated by Maxim Dubinin, please review before applying.

Attachments (1)

symbols2.patch (1.2 KB ) - added by gislab 15 years ago.

Download all attachments as: .zip

Change History (4)

by gislab, 15 years ago

Attachment: symbols2.patch added

comment:1 by pcav, 15 years ago

Priority: critical: causes crash or data corruptionminor: annoyance

comment:2 by lutra, 15 years ago

Type: bugpatch

comment:3 by mhugent, 15 years ago

Resolution: fixed
Status: newclosed

Applied in r11512. Thanks!

Note: See TracTickets for help on using tickets.