Uploaded image for project: 'MapWinGIS'
  1. MWGIS-55

Adding field with 0 width doesn't return an error

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: v4.9.4.2
    • Fix Version/s: v4.9.5.0
    • Labels:
      None

      Description

      See unit test AddField in D:\dev\MapwinGIS\unittests\MapWinGISTests\ShapefileTests.cs

      I can create a field and accidentally switch the precision and width parameters, making width = 0.
      This doesn't create the field, the field is removed after saving, but sf.Table.EditAddField returns a valid index and sf.NumFields is increased.

      EditAddField should return -1, the proper error messages should be set and NumFields should not be changed.

        Attachments

          Activity

            People

            • Assignee:
              admin Paul Meems
              Reporter:
              admin Paul Meems
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: