Save overlay data after resetting position

Due to flaw in logic, the save event in mouseReleased was never
triggered when overlay position was reset. It is not possible anymore to
go through the logic again/not worth and so save the overlay data
immediately.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-03-30 04:01:02 +02:00
parent f2f3550576
commit e7897eccc2

View File

@@ -377,6 +377,8 @@ public class OverlayRenderer extends MouseListener implements KeyListener
{
overlay.setPreferredLocation(null);
overlay.setPreferredPosition(null);
saveOverlayPosition(overlay);
saveOverlayLocation(overlay);
rebuildOverlayLayers();
}
else