Remove 'm_isMasked' : it's not a good criterion for texts filtering.

This commit is contained in:
vng 2011-02-16 23:00:39 +02:00 committed by Alex Zolotarev
parent 36f629f4df
commit 522e11336d

View file

@ -67,13 +67,11 @@ namespace yg
bool TextRenderer::TextObj::better_text(TextObj const & r1, TextObj const & r2)
{
/// any text is worse than a frozen one,
/// because frozen texts shouldn't be popped out by newly arrived texts.
// any text is worse than a frozen one,
// because frozen texts shouldn't be popped out by newly arrived texts.
if (r2.m_frozen)
return false;
if ((r1.m_isMasked) && (!r2.m_isMasked))
return true;
return r1.m_depth > r2.m_depth;
return (r1.m_depth > r2.m_depth);
}
void TextRenderer::drawText(m2::PointD const & pt,