File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
ExtLibs/GMap.NET.WindowsForms/GMap.NET.WindowsForms Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,24 @@ public partial class TilePrefetcherMenu : Form
1515
1616 private RectLatLng area ;
1717 private GMapProvider provider ;
18+ private bool isInitialized = false ;
1819
1920 public TilePrefetcherMenu ( int min , int max , RectLatLng area , GMapProvider provider )
2021 {
2122 InitializeComponent ( ) ;
22- numericUpDownMinZoom . Minimum = numericUpDownMaxZoom . Minimum = trackBarMinZoom . Minimum = trackBarMaxZoom . Minimum = min ;
23- numericUpDownMinZoom . Maximum = numericUpDownMaxZoom . Maximum = trackBarMinZoom . Maximum = trackBarMaxZoom . Maximum = max ;
2423 this . area = area ;
2524 this . provider = provider ;
25+ numericUpDownMinZoom . Minimum = numericUpDownMaxZoom . Minimum = trackBarMinZoom . Minimum = trackBarMaxZoom . Minimum = min ;
26+ numericUpDownMinZoom . Maximum = numericUpDownMaxZoom . Maximum = trackBarMinZoom . Maximum = trackBarMaxZoom . Maximum = max ;
27+ isInitialized = true ;
2628 UpdateTilesCount ( ) ;
2729 }
2830
2931 private void UpdateTilesCount ( )
3032 {
33+ if ( ! isInitialized )
34+ return ;
35+
3136 long count = 0 ;
3237 string results = "" ;
3338 long total = 0 ;
You can’t perform that action at this time.
0 commit comments