projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed issues with WirePointHandle
[Mograsim.git]
/
net.mograsim.logic.model.editor
/
src
/
net
/
mograsim
/
logic
/
model
/
editor
/
ui
/
EditorCanvas.java
diff --git
a/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/ui/EditorCanvas.java
b/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/ui/EditorCanvas.java
index
641aaa4
..
aedaa48
100644
(file)
--- a/
net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/ui/EditorCanvas.java
+++ b/
net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/ui/EditorCanvas.java
@@
-22,9
+22,17
@@
public class EditorCanvas extends LogicUICanvas
super(parent, style, editor.toBeEdited.submodel);
handles = editor.handleManager.getHandles();
super(parent, style, editor.toBeEdited.submodel);
handles = editor.handleManager.getHandles();
- editor.handleManager.addHandleAddedListener(h -> h.addRedrawListener(this::redrawThreadsafe));
+ editor.handleManager.addHandleAddedListener(h ->
+ {
+ redrawThreadsafe();
+ h.addRedrawListener(this::redrawThreadsafe);
+ });
// TODO: Is this even necessary? The Handle should be finalized by the gc
// TODO: Is this even necessary? The Handle should be finalized by the gc
- editor.handleManager.addHandleRemovedListener(h -> h.removeRedrawListener(this::redrawThreadsafe));
+ editor.handleManager.addHandleRemovedListener(h ->
+ {
+ redrawThreadsafe();
+ h.removeRedrawListener(this::redrawThreadsafe);
+ });
addZoomedRenderer(gc ->
{
addZoomedRenderer(gc ->
{