Mission Planner 1.2.25

fix scaling problem on arducopter config tab. when linking is enabled
This commit is contained in:
Michael Oborne 2012-11-29 21:13:00 +08:00
parent f1206ed363
commit c1222a75f3
2 changed files with 6 additions and 6 deletions

View File

@ -299,7 +299,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
{ {
string newname = name.Replace("_RLL_", "_PIT_"); string newname = name.Replace("_RLL_", "_PIT_");
Control[] arr = this.Controls.Find(newname, true); Control[] arr = this.Controls.Find(newname, true);
changes[newname] = float.Parse(((Control)sender).Text); changes[newname] = value;
if (arr.Length > 0) if (arr.Length > 0)
{ {
@ -312,7 +312,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
{ {
string newname = name.Replace("_PIT_", "_RLL_"); string newname = name.Replace("_PIT_", "_RLL_");
Control[] arr = this.Controls.Find(newname, true); Control[] arr = this.Controls.Find(newname, true);
changes[newname] = float.Parse(((Control)sender).Text); changes[newname] = value;
if (arr.Length > 0) if (arr.Length > 0)
{ {
@ -327,7 +327,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
{ {
string newname = name.Replace("NAV_LAT_", "NAV_LON_"); string newname = name.Replace("NAV_LAT_", "NAV_LON_");
Control[] arr = this.Controls.Find(newname, true); Control[] arr = this.Controls.Find(newname, true);
changes[newname] = float.Parse(((Control)sender).Text); changes[newname] = value;
if (arr.Length > 0) if (arr.Length > 0)
{ {
@ -340,7 +340,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
{ {
string newname = name.Replace("LOITER_LAT_", "LOITER_LON_"); string newname = name.Replace("LOITER_LAT_", "LOITER_LON_");
Control[] arr = this.Controls.Find(newname, true); Control[] arr = this.Controls.Find(newname, true);
changes[newname] = float.Parse(((Control)sender).Text); changes[newname] = value;
if (arr.Length > 0) if (arr.Length > 0)
{ {
@ -353,7 +353,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
{ {
string newname = name.Replace("HLD_LAT_", "HLD_LON_"); string newname = name.Replace("HLD_LAT_", "HLD_LON_");
Control[] arr = this.Controls.Find(newname, true); Control[] arr = this.Controls.Find(newname, true);
changes[newname] = float.Parse(((Control)sender).Text); changes[newname] = value;
if (arr.Length > 0) if (arr.Length > 0)
{ {

View File

@ -34,5 +34,5 @@ using System.Resources;
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.*")] [assembly: AssemblyVersion("1.1.*")]
[assembly: AssemblyFileVersion("1.2.24")] [assembly: AssemblyFileVersion("1.2.25")]
[assembly: NeutralResourcesLanguageAttribute("")] [assembly: NeutralResourcesLanguageAttribute("")]