Uploaded image for project: 'JSword'
  1. JSword
  2. JS-275

First dictionary entry cannot be viewed

    Details

      Description

      This was raised a couple of weeks ago in a post from John. I will check in the simple fix if that is okay.

      John:
      With And-Bible, reading of the first dictionary key of dictionaries is failing because of: dictbook.contains(key).

      The fix is in JSword's AbstractKeyBackend.java:

          public boolean contains(Key key) {
              return indexOf(key) > 0;
          }
      

      This should apparently be:

      indexOf(key) >= 0;

      This fixes the problem in And-Bible.

      DM:
      Thanks.
      Some of the dictionaries have an intro for the first entry or have an empty first entry. My guess is that this attempted to account for that.

        Attachments

          Activity

            People

            • Assignee:
              dmsmith DM Smith
              Reporter:
              mjdenham Martin Denham
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: