[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/marble/src
From: Torsten Rahn <tackat () kde ! org>
Date: 2006-10-11 10:32:52
Message-ID: 1160562772.665041.4260.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 594440 by rahn:
No bounds checking ...
M +3 -3 placemarkpainter.cpp
--- trunk/playground/base/marble/src/placemarkpainter.cpp #594439:594440
@@ -125,7 +125,7 @@
PlaceMark* mark = *it; // no cast
- if ( m_weightfilter.at( mark->symbol() ) > radius && mark->symbol() != 0 ) continue;
+ if ( m_weightfilter[mark->symbol()] > radius && mark->symbol() != 0 ) continue;
*qpos = mark->getQuatPoint();
@@ -226,11 +226,11 @@
// Paint the label onto the map
painter->drawPixmap( labelplace, textpixmap );
visibleplacemarks.append(mark);
- painter->drawPixmap( x-4, y-4 , m_citysymbol.at( mark->symbol() ));
+ painter->drawPixmap( x-4, y-4 , m_citysymbol[mark->symbol()]);
}
else {
if ( mark->symbol() == 0 )
- painter->drawPixmap( x-4, y-4 , m_citysymbol.at( mark->symbol() ));
+ painter->drawPixmap( x-4, y-4 , m_citysymbol[mark->symbol()]);
}
}
else{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic