diff --git a/map/location_state.cpp b/map/location_state.cpp index 0c7c30d16c..6407258a30 100644 --- a/map/location_state.cpp +++ b/map/location_state.cpp @@ -61,9 +61,7 @@ namespace location { double e = exp(-2 * elapsed) / 40000.0; e = max(e, 0.000005); - LOG(LINFO, ("E = ", e)); m_currentRadius += e ; - LOG(LINFO, ("R = ", m_currentRadius)); if (m_currentRadius < 0.0) m_currentRadius = 0.0; diff --git a/skin_generator/skin_generator.cpp b/skin_generator/skin_generator.cpp index 4a6bed93ad..fa27d1f45f 100644 --- a/skin_generator/skin_generator.cpp +++ b/skin_generator/skin_generator.cpp @@ -218,12 +218,13 @@ namespace tools painter.setClipRect(dstRect.minX() + 2, dstRect.minY() + 2, dstRect.SizeX() - 4, dstRect.SizeY() - 4); QRect renderRect(dstRect.minX() + 2, dstRect.minY() + 2, dstRect.SizeX() - 4, dstRect.SizeY() - 4); - if (it->m_fullFileName.endsWith(".svg")) + QString fullLowerCaseName = it->m_fullFileName.toLower(); + if (fullLowerCaseName.endsWith(".svg")) { m_svgRenderer.load(it->m_fullFileName); m_svgRenderer.render(&painter, renderRect); } - else if (it->m_fullFileName.toLower().endsWith(".png")) + else if (fullLowerCaseName.endsWith(".png")) { QPixmap pix(it->m_fullFileName); painter.drawPixmap(renderRect, pix);