Skip to content

v2.6.1: Fix #21980 and #21902

Compare
Choose a tag to compare
@tsmock tsmock released this 24 Aug 17:02
· 14 commits to master since this release
v2.6.1
92c57cc
* #21902: IAE: Listener was not registered before

  This is caused by (a) sharing an action between a menu and (b) a
  mapframe icon.

  This adds a non-regression test, and additionally modifies the
  AreaSelectorAction to override `readPreferences`, which is called
  when the map mode is entered. Furthermore, the MapMode class implements
  PreferenceChangedListener, which removes the need to notify the
  action manually about modified preferences.

* #21980: PreferencePanel: Fix an NPE

  This occurs when TaggingPreset#getRawName returns null, which occurs
  with TaggingPresetSeparator. This patch ignores TaggingPresetSeparator
  and uses Objects#equals.