Commit 7b2207d2 authored by Dean Adamson's avatar Dean Adamson Committed by Dennis Nienhüser

Fix function using xor operator when it should be using an and operator

BUG: 381511
parent d1c9bb09
......@@ -558,12 +558,10 @@ void GeoDataLineString::setTessellate( bool tessellate )
// the same latitude the latitude circles are followed. Our Tesselate and RespectLatitude
// Flags provide this behaviour. For true polygons the latitude circles don't get considered.
if ( tessellate ) {
d->m_tessellationFlags |= Tessellate;
d->m_tessellationFlags |= RespectLatitudeCircle;
if (tessellate) {
d->m_tessellationFlags |= (Tessellate | RespectLatitudeCircle);
} else {
d->m_tessellationFlags ^= Tessellate;
d->m_tessellationFlags ^= RespectLatitudeCircle;
d->m_tessellationFlags &= ~(Tessellate | RespectLatitudeCircle);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment