]> git.street.me.uk Git - andy/viking.git/blobdiff - src/mapcache.c
Make more portable .vik file, as don't save the map cache directory if it's the map...
[andy/viking.git] / src / mapcache.c
index b6a2c2b3ff025ceddb4723a37621066a2bd7c56a..29f5d2236b660b492d8bdb92ffcbf02c8cf7b9a6 100644 (file)
@@ -58,7 +58,7 @@ static VikLayerParamScale params_scales[] = {
 };
 
 static VikLayerParam prefs[] = {
-  { VIKING_PREFERENCES_NAMESPACE "mapcache_size", VIK_LAYER_PARAM_UINT, VIK_LAYER_GROUP_NONE, N_("Map cache memory size (MB):"), VIK_LAYER_WIDGET_HSCALE, params_scales, NULL, NULL },
+  { VIK_LAYER_NUM_TYPES, VIKING_PREFERENCES_NAMESPACE "mapcache_size", VIK_LAYER_PARAM_UINT, VIK_LAYER_GROUP_NONE, N_("Map cache memory size (MB):"), VIK_LAYER_WIDGET_HSCALE, params_scales, NULL, NULL },
 };
 
 void a_mapcache_init ()