[Marble-devel] Review Request 110735: Route manager: Fix loading routes with less via points than currently active
Commit Hook
null at kde.org
Sat Jun 1 08:46:54 UTC 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/110735/#review33546
-----------------------------------------------------------
This review has been submitted with commit e2a5ba77195ee3067724cc8c660a550ae41c270e by Dennis Nienhüser on behalf of Thomas Jarosch to branch master.
- Commit Hook
On May 30, 2013, 5:17 p.m., Thomas Jarosch wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/110735/
> -----------------------------------------------------------
>
> (Updated May 30, 2013, 5:17 p.m.)
>
>
> Review request for Marble.
>
>
> Description
> -------
>
> Hi,
>
> when you load a route with less via points than currently active vias,
> the intention of the code was to remove all unneeded via points.
>
> The logic to do this was broken: Every time you remove an element,
> m_RouteRequest.size() will also decrement -> one element was always left over.
>
> Attached patch fixes this.
>
> *** Steps to reproduce ***
> Create a normal route with two vias and save it.
> Clear the route, create a new one and add some random vias.
>
> If you now load the route with the two via points,
> one previous via point is left over.
>
> Thomas
>
>
> Diffs
> -----
>
> src/lib/routing/RoutingManager.cpp c0554cf
>
> Diff: http://git.reviewboard.kde.org/r/110735/diff/
>
>
> Testing
> -------
>
> Tested on desktop Qt version.
>
>
> Thanks,
>
> Thomas Jarosch
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20130601/014bf621/attachment.html>
More information about the Marble-devel
mailing list