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
|
@ -415,6 +415,8 @@ public class TraditionalRendering extends AbstractMemoryRendering implements IRe
|
||||||
}
|
}
|
||||||
|
|
||||||
public void applyPreferences()
|
public void applyPreferences()
|
||||||
|
{
|
||||||
|
if(!fRendering.isDisposed())
|
||||||
{
|
{
|
||||||
fRendering.setBackground(getColorBackground());
|
fRendering.setBackground(getColorBackground());
|
||||||
|
|
||||||
|
@ -424,6 +426,7 @@ public class TraditionalRendering extends AbstractMemoryRendering implements IRe
|
||||||
|
|
||||||
fRendering.redrawPanes();
|
fRendering.redrawPanes();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Color getColorBackground()
|
public Color getColorBackground()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue