action Presentation: don't copy to itself

This commit is contained in:
peter
2018-11-20 14:13:12 +01:00
parent c519c32006
commit 6f8df7cba1
@@ -314,6 +314,8 @@ public final class Presentation implements Cloneable {
}
public void copyFrom(Presentation presentation) {
if (presentation == this) return;
setText(presentation.getTextWithMnemonic(), presentation.myDisplayedMnemonicIndex > -1);
setDescription(presentation.getDescription());
setIcon(presentation.getIcon());