MissionPlanner
MissionPlanner copied to clipboard
At CustomMessageBox.cs line 98 SizeF should be Size type
Issue details
At CustomMessageBox.cs , line 98 : SizeF sz = TextRenderer.MeasureText ("The quick brown Fox", SystemFonts.DefaultFont); At the program, the return of TextRenderer.MeasureText , is Size type .
When using MissionPlannerLib.sln, debugging using Andorid 10 mobile phone, it reports problems at line 101: text = AddNewLinesToText(text, Screen.PrimaryScreen.Bounds.Width / (int)perchar); The message is “find divided by zero”.
When debug using Android 7 mobile, there's no problem .
After changed line 98 , SizeF to Size , the debug at Andorid 10 mobile phone ran good.
Version
I've been download the latest files , at 2023.9.10 .
Platform
[ ] All [ ] AntennaTracker [ Yes ] Copter [ ] Plane [ ] Rover [ ] Sub
Airframe type
None.
Hardware type
Just practice at mobile phone software , is about to use it at APM2.8 hardware.
Logs
None.