Bug 378188

Summary: GeoDataIconStyle inconsistency
Product: [Applications] marble Reporter: Olle Lundin <olle.lundin>
Component: dataAssignee: marble-bugs
Status: CONFIRMED ---    
Severity: normal CC: nienhueser, rahn
Priority: NOR    
Version: 2.1 (KDE Applications 16.12)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: example code showing the behaviour

Description Olle Lundin 2017-03-28 07:00:03 UTC
Created attachment 104771 [details]
example code showing the behaviour

There seems to be a difference between setting icon as path in the constructor and using the setIcon method in GeoDataIconStyle. 

When using the setIcon on two different GeoDataIconStyle used for two different GeoDataPlacemarks the both placemarks are rendered with the same icon.

See attached code for example


Tested on windows7 with Qt-5.5 and mingw492_32
Comment 1 Olle Lundin 2017-04-05 10:07:46 UTC
Disabling BATCH_RENDERING in PlacemarkLayer.cpp fixes the problem
Comment 2 Olle Lundin 2017-04-06 07:33:27 UTC
BATCH_RENDERING relies on symbolId for generating a hash but when setting the icon with setIcon(QImage) the symbolId is set to empty string which leads to same hash for all icons