[marble] [Bug 381511] New: GeoDataLineString::setTessellate function fails to unset tessellation.
Dean Adamson
bugzilla_noreply at kde.org
Thu Jun 22 02:52:08 UTC 2017
https://bugs.kde.org/show_bug.cgi?id=381511
Bug ID: 381511
Summary: GeoDataLineString::setTessellate function fails to
unset tessellation.
Product: marble
Version: unspecified
Platform: MS Windows
OS: MS Windows
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: marble-bugs at kde.org
Reporter: dadamson.dumping.ground at gmail.com
Target Milestone: ---
When you pass in false into the function GeoDataLineString::setTessellate in
GeoDataLineString.cpp lines 478-493, it can actually set tessellation on
instead of off. This happens because the function is using a xor operator when
it should be using an and operator. See below:
if ( tessellate ) {
p()->m_tessellationFlags |= Tessellate;
p()->m_tessellationFlags |= RespectLatitudeCircle;
} else {
p()->m_tessellationFlags ^= Tessellate;
p()->m_tessellationFlags ^= RespectLatitudeCircle;
}
The above should really be the following:
if ( tessellate ) {
p()->m_tessellationFlags |= (Tessellate | RespectLatitudeCircle);
} else {
p()->m_tessellationFlags &= ~(Tessellate | RespectLatitudeCircle);
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Marble-bugs
mailing list