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.

        Activity

        Hide
        DM Smith added a comment -

        Many thanks. This has been checked in.

        Show
        DM Smith added a comment - Many thanks. This has been checked in.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: