| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
since 'lastline[]' is stack-allocated it can never be NULL, thus we
don't need to check for that. This fixes the following compiler warning:
warning: the comparison will always evaluate as ‘true’ for the address of ‘lastline’ will never be NULL [-Waddress]
1809 | if ((lastline != NULL) && (strcmp(lastline, TEXTFILE_COMMENT_NAVI_STOPPED))) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* FIX:graphics:qt5 switch path of navit qml to org.navitproject
Android uses org/navitproject/navit so do we on qt5 now
* FEATURE:core: allow to configure linux home config dir
* FIX:sailfish: configure to enable sailjail
* CI: remove docker install step from sailfish
* SAILFISH: bump release version to .2
* fix:sailfish: add Audio perrmission for espeak
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Refactor:Transform: Create transform func for a single point
we have a common pattern where we call transform() for a single point. We have
to specify the last 4 parameters as constants in a function with too
many parameters. So refactor this function to a simpler signature. While
at this, we also rename the function for easy distinction.
* Fix:Transform: Fix buffer overflow in transform_point_buf in ticket #1167
When displayitem_transform_holes() is called, we allocate a struct point buffer
of size count. Then we call transform_point_buf() to fill that buffer called
result. In this function we fill the buffer in a for loop that runs count times.
The buffer is indexed using result_idx which is incremented every loop
iteration. However, if we are in 3d mode (indicated by t->ddd), we call
transform_z_clip_if_necessary(). This can lead to the repetition of the current
loop iteration by decreasing the loop variable i by 1. Even though we decreased
i we still increment result_idx by 1. So from the point of view of result_idx we
are running the loop count+1 times. Thus, we write one element past the
allocated buffer.
To fix this we give the size of the allocated buffer to
transform_point_buf(). Then we check in the loop if the repetition of this
loop iteration would fit into the buffer. If not, we double the size of
the buffer and try again until we succeed.
Co-authored-by: Stefan Wildemann <metalstrolch@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix:core: cancel drawing on resize request
This commit causes navit to cancel async drawing in case of resize
request. Drawing is started again after that. this should effectively
cause a redraw on subsequent calls to resize. Some graphics like qt5
call resize for both dimension changes if the wigdet get's resized.
* Fix:graphics:qt5 Clear pixmap on resize
To remove ugly artefacts after resizing the widget until navit completes
to redraw the screen the widgets pixmap is cleared.
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix #1135
* Revert "Fix #1135"
This reverts commit 585ab7bbe2020b574e35ce08153ff2991131b3f3.
* Revert "Revert "Fix #1135""
This reverts commit 97ff13fa761a884019e341dd77e62a2735b52213.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Address ToDo : make it switch to nightlayout when we are in a tunne
Nightlayout is enabled when available and streetflags & AF_UNDERGROUND is true
* Addresses ToDo: make it switch to nightlayout when we are in a tunnel
* Delete navit.c
* Applied suggested changes from review
* Applied changes from review
* Fix: Fix formatting of file to pass sanity check
* Using tracking->tunnel
* Update update_download_center.sh
* Update config.yml
* attributes tunnel_nightlayout, nightlayout_auto, sunrise_degrees added
* Use tracking_get_current_tunnel to access tracking object
* Revert "Update update_download_center.sh"
This reverts commit 0df8099a4533553f837a6f679899cc1a3aefc057.
* Revert "Update config.yml"
This reverts commit c1cae2e5f3f7f0fe48af0ddf1414ac6e86f36bba.
* removed todo for nightlayout in tunnel
* removed debug output
* Update navit.c
Do not return if there is a day layout
Co-authored-by: Stefan Wildemann <stefan.wildemann@corpuls.com>
Co-authored-by: Stefan Wildemann <metalstrolch@users.noreply.github.com>
|
|\
| |
| |
| |
| | |
# Conflicts:
# navit/android/AndroidManifest.xml.cmake
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
| |
| |
| |
| | |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
| |
| |
| |
| | |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
|/
|
|
| |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
|
|
| |
* fix:core:remove many compiler warnings from core
|
|
|
| |
https://github.com/navit-gps/navit/pull/877
|
|
|
|
|
| |
This commit corrects the default layout handling broken when splitting
the layouts to own files. It restores the layout saving of the internal
gui. So now it starts again with the last selected layout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Moving get_search_results_map from internal gui to generic navit functions
* Moving square_shape_str() and populate_search_results_map() in generic files (not making them gui_internal-specific)
* Adding GList cleanup after adding search results to a map, setting result names properly in GTK POI
* Using common navit_populate_search_results_map() in internal GUI (factorizing code)
* Adding doxygen comments
* Reverting added empty lines
* Applying expected style (indentation)
* Adding dedicated code to free payload for GList (instead of using unavailable g_list_free_full())
* Avoiding for loop initial declarations
* Remove obsolete FIXME comment
* Minor tweaking doxygen comments and variables
* Removing highlighted points on result map when starting routing
|
|
|
|
|
|
|
|
|
|
| |
main navit.xml file lighter) (#559)
Layouts contain quite heavy xml code, and there are many layouts available for navit.
They are all inserted inside the main navit.xml, which makes it hard to edit because of its size, even if changes or customizations by users are very rarely on the layout code.
I have thus moved the layout code away from navit.xml, each layout having its own xml definition file, called navit_layout_*.xml
These files are inserted inside the main navit.xml file by using the already existing xi:include mechanism, this also allow for backwards compatibility (old monolithic navit.xml files are still valid and can be used).
The other advantage for this is that f the user wants to have his/her own customized navit.xml, he/she can still include the shipped layout files, making their xml lighter. This also allow to enable/disable specific layouts easily by including or not each layout file.
It is also easier to perform side-by-side comparison between two layout files.
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
# Conflicts:
# navit/binding/dbus/binding_dbus.c
# navit/gui/internal/gui_internal_html.c
# navit/route.c
# navit/util.c
# navit/xmlconfig.c
|
| |
| |
| |
| |
| |
| |
| |
| | |
declaration (#605)
* Cleanup:global:force the re-attach the return type to the function declaration
* cleanup:global:some loose ends
|
| | |
|
| |
| |
| |
| |
| |
| | |
Mirrors 8a76acb and 41a1264
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
|\ \
| |/
| |
| |
| |
| | |
# Conflicts:
# navit/route.c
# navit/xmlconfig.c
|
| |
| |
| |
| |
| |
| |
| |
| | |
* Fix:debug:Change line separators for dbg to work also on win* platform
* Fix:debug:Break multiline dbg statements to use the new model
* Fix:debug:Move the EOL into debug_vprintf
|
| |
| |
| |
| | |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
| |
| |
| |
| | |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
Another go at fixing imperial measures. This is ready for testing on a different machine, but not for a pull request.
Also, some improvements in some comments.
|
| |
| |
| |
| | |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
|/
|
|
| |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Use correct conversion factors for a more accurate display. Also,
introduced some new conversion factors in navigation.h.
modified: navit/gui/gtk/gui_gtk_statusbar.c
modified: navit/navigation.h
modified: navit/navit.c
* Use the conversion factor #define instead of a hard coded value.
modified: navit/vehicle/gpsd/vehicle_gpsd.c
|
|
|
|
| |
modified: navit/navit.c
|
|
|
|
|
|
| |
file. I will leave that for another time.
modified: navit/navit.c
|
|
|
|
|
|
|
|
|
| |
column (Command) was good for both feet and miles. However, column 2
(Length), and the 4th column (Destination Length), were showing up
only in metric. This commit fixes columns 2 and 4. This should fix bug
780.
modified: navit/navit.c
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Initial commit
* Use original pitch when autozoom is not active
* Apply pitch correction in reverse when reading attribute
* Always show zoom in and out buttons
* Remove space before closing tag
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Initial commit
* First try
* Use solution as default
* Add comment and debug log message
* More technically correct
* Move logic to transform
* Fix
* Do not round as we're using a double now
* Even simpler
* Fix
* Use typedefs
* No typedefs
* Simplify
* Moar simple
* Simple math
* Static value and comment
* Variables for w and h
* w,h im transform_new
* No rounding errors
* Log w and h
* Typo
* Define default resolution
* Remove comment
* Move logic
* Unused variable cleanup
* Do not change pitch if not in 3d mode
* Round integer
* Move logic again
* Round up
* [POI] Resize SVG icons to 22x22 (#304)
* Initial commit
* First try
* Use solution as default
* Add comment and debug log message
* More technically correct
* Move logic to transform
* Fix
* Do not round as we're using a double now
* Even simpler
* Fix
* Use typedefs
* No typedefs
* Simplify
* Moar simple
* Simple math
* Static value and comment
* Variables for w and h
* w,h im transform_new
* No rounding errors
* Log w and h
* Typo
* Define default resolution
* Remove comment
* Move logic
* Unused variable cleanup
* Do not change pitch if not in 3d mode
* Round integer
* Move logic again
* Round up
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When deactivating vehicle, profile is choosen from "car" vehicle_profile or by
default the first vehicle_profile in list. So, by example,
car_avoid_tolls never work when manually selecting current position (and
deactivate vehicle).
Now, if there is a selected vehicle profile, we keep it as
vehicle_profile (not changing it).
Aditionnaly, in internal gui, selecting a vehicle profile when wehicle
is deactivated, in gui_internal_cmd_set_active_profile(), call navit_set_vehicleprofile_name() with new
vehicle_profile (by name) before setting vehicle_attr to NULL (like in
gui_internal_cmd_set_position()).
Now, we can switch profile when vehicle is deactivatied and route is
update correctly.
TO DO : Same in other gui
TO TEST : with more than one vehicle enable
|
|
|
|
|
|
| |
* sunrise near poles simplification
* Update navit.c
|
|\
| |
| | |
Pause the autozoom feature when zoom_in() or zoom_out() is called
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|/
|
| |
introduce layout switching command
|
|
|
|
| |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
|
|
|
| |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
|
|
|
|
|
| |
If the initialization of GUI or graphics plugin or connecting the two
fails, exit immediately. In that state we cannot reliably continue
running, plus there's probably no point anyway.
|
|
|
|
| |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
|
|
|
| |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
| |
|