Bug 378188 - GeoDataIconStyle inconsistency
Summary: GeoDataIconStyle inconsistency
Status: CONFIRMED
Alias: None
Product: marble
Classification: Applications
Component: data (show other bugs)
Version: 2.1 (KDE Applications 16.12)
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-28 07:00 UTC by Olle Lundin
Modified: 2017-04-17 10:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
example code showing the behaviour (1.87 KB, text/plain)
2017-03-28 07:00 UTC, Olle Lundin
Details

Note You need to log in before you can comment on or make changes to this bug.
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