mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
check for isDisposed before settings colors
This commit is contained in:
parent
3af711fbbd
commit
ecac8d4eca
1 changed files with 9 additions and 6 deletions
|
@ -416,13 +416,16 @@ public class TraditionalRendering extends AbstractMemoryRendering implements IRe
|
|||
|
||||
public void applyPreferences()
|
||||
{
|
||||
fRendering.setBackground(getColorBackground());
|
||||
if(!fRendering.isDisposed())
|
||||
{
|
||||
fRendering.setBackground(getColorBackground());
|
||||
|
||||
AbstractPane panes[] = fRendering.getRenderingPanes();
|
||||
for(int i = 0; i < panes.length; i++)
|
||||
panes[i].setBackground(getColorBackground());
|
||||
|
||||
fRendering.redrawPanes();
|
||||
AbstractPane panes[] = fRendering.getRenderingPanes();
|
||||
for(int i = 0; i < panes.length; i++)
|
||||
panes[i].setBackground(getColorBackground());
|
||||
|
||||
fRendering.redrawPanes();
|
||||
}
|
||||
}
|
||||
|
||||
public Color getColorBackground()
|
||||
|
|
Loading…
Add table
Reference in a new issue