Closed cxbrooks closed 3 years ago
Thank you. I don't have a mac, but at first glance this fix looks safe. I'll test out your fix on x86 within a couple of days.
I'm not way up on the interface to Excel or Excel itself, but ideally there would be a way to check between a cell that had no type (that had never been set) vs. a cell that had a type of string and the string was empty. Checking for an unset type might be safer than checking for a string of length 0.
Tomorrow, I'll see if I can run down the oddity of not having all the rows visible. It was working until I updated my go libraries. I was at the git head in editcp, but the libraries might have been old. I'm not way up on how go works either so who knows.
BTW - many thanks for editcp, I'm happy to be able to program the radio via a native Mac app instead of running software in a Windows VM.
Well, better late than never, I guess. I applied the above change in commit d999b862d18ad91a5f753bab4f0ab4ee0a4d6b49. Thank you again.
It's available in editcp v1.0.27.
Under macOS, it seems that when I export a .xslx file, and then reimport it, I get problems with blank fields being introduced.
To replicate this, under macOS with editcp 1.0.23 and a TYT MD-UV390:
The following message appears:
The invalid fields are:
etc.
Here's the file that was exported: codeplug3.xlsx
BTW - I opened the .xslx file that was created and oddly the rows cannot be displayed? I tried unhiding them by selecting the first row displayed (row 58 in the Zones tab) and then right clicking and selecting unhide, but the other rows were not displayed. I guess that would be a separate issue...
I was able to export the Zones tab as a csv file and I can see that the first row has empty fields:
My solution is to modify go/src/github.com/dalefarnsworth-dmr/codeplug/codeplug.go: