summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin LĆ¼tgenau2012-09-18 12:03:38 (EDT)
committer Wim Jongman2012-09-18 12:03:38 (EDT)
commit6ca6e927f1f60fd943ea9e5afba483b01f5f8a88 (patch)
tree4798e695078cca3b13ec72c9e6847891244cf04f
parente64597c4a3c1fde835ab9abb615532008af81460 (diff)
downloadorg.eclipse.nebula-6ca6e927f1f60fd943ea9e5afba483b01f5f8a88.zip
org.eclipse.nebula-6ca6e927f1f60fd943ea9e5afba483b01f5f8a88.tar.gz
org.eclipse.nebula-6ca6e927f1f60fd943ea9e5afba483b01f5f8a88.tar.bz2
bug 389822: Application crashes when repeatedly showing
AdvancedToolTipDialog https://bugs.eclipse.org/bugs/show_bug.cgi?id=389822
-rw-r--r--widgets/ganttchart/org.eclipse.nebula.widgets.ganttchart/src/org/eclipse/nebula/widgets/ganttchart/AdvancedTooltipDialog.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/ganttchart/org.eclipse.nebula.widgets.ganttchart/src/org/eclipse/nebula/widgets/ganttchart/AdvancedTooltipDialog.java b/widgets/ganttchart/org.eclipse.nebula.widgets.ganttchart/src/org/eclipse/nebula/widgets/ganttchart/AdvancedTooltipDialog.java
index c478ea6..ddd2cd1 100644
--- a/widgets/ganttchart/org.eclipse.nebula.widgets.ganttchart/src/org/eclipse/nebula/widgets/ganttchart/AdvancedTooltipDialog.java
+++ b/widgets/ganttchart/org.eclipse.nebula.widgets.ganttchart/src/org/eclipse/nebula/widgets/ganttchart/AdvancedTooltipDialog.java
@@ -265,8 +265,9 @@ public class AdvancedTooltipDialog {
Display.getDefault().asyncExec(new Runnable() {
public void run() {
- _shell.redraw();
-
+ if (!_shell.isDisposed()) {
+ _shell.redraw();
+ }
}
});