1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 99-autobestmap.dpatch by Andreas Putzo <andreas@putzo.net>
4
## DP: The autobestmap config option is not updated when using the toggle button
5
## DP: in gpsdrive. Patch backported from 2.10pre5.
8
diff -urNad gpsdrive-2.10~pre4~/src/main_gui.c gpsdrive-2.10~pre4/src/main_gui.c
9
--- gpsdrive-2.10~pre4~/src/main_gui.c 2007-09-15 15:12:03.000000000 +0000
10
+++ gpsdrive-2.10~pre4/src/main_gui.c 2008-07-15 19:48:34.000000000 +0000
12
gtk_label_set_text (GTK_LABEL (statusprefscale_lb), _("Auto"));
14
gtk_widget_set_sensitive (mapscaler_scaler, FALSE);
15
+ local_config.autobestmap = TRUE;
20
gtk_label_set_text (GTK_LABEL (statusprefscale_lb), sc);
22
gtk_widget_set_sensitive (mapscaler_scaler, TRUE);
23
+ local_config.autobestmap = FALSE;
26
current.needtosave = TRUE;