[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/marble/src/lib/routing
From: Dennis Nienhüser <earthwings () gentoo ! org>
Date: 2010-09-26 13:39:45
Message-ID: 20100926133945.C009CAC857 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1179908 by nienhueser:
Fix another out of bounds crash.
M +1 -1 RoutingModel.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingModel.cpp #1179907:1179908
@@ -439,7 +439,7 @@
totalDistanceRemaining = 0.0;
}
- if( distanceRemaining < instructions[d->m_nextInstructionIndex-1].instructionDistance ) {
+ if( d->m_nextInstructionIndex > 0 && distanceRemaining < \
instructions[d->m_nextInstructionIndex-1].instructionDistance ) { d->m_routeLeft = false;
}
else {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic