[Marble-bugs] [marble] [Bug 317719] Marble can't show several DataLayers in QML applidation
Dennis Nienhüser
earthwings at gentoo.org
Wed Apr 3 20:48:49 UTC 2013
https://bugs.kde.org/show_bug.cgi?id=317719
Dennis Nienhüser <earthwings at gentoo.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
CC| |earthwings at gentoo.org
Ever confirmed|0 |1
--- Comment #1 from Dennis Nienhüser <earthwings at gentoo.org> ---
Good catch, thanks for reporting and tracking it down. The cause is the wrong
use of the shared (static) m_counter variable for nameId() in case it has not
been assigned a unique string id (i.e. in .qml you're not setting some unique
nameId like "myFirstLayer" for each DataLayer). Instead it must use its own
(not shared) counter which is only synced with the global counter in the ctor.
I'll commit a fix shortly and backport it to 1.5 as well. If you can't / don't
want to wait for the fix, you can also specify the nameId property in each
DataLayer in QML as a workaround. I checked that this workaround works as well
with your example above. E.g.
DataLayer{
id: la1
nameId: "layer1"
...
DataLayer{
id: la2
nameId: "layer2"
...
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Marble-bugs
mailing list