diff --git a/platform/platform-api/src/com/intellij/util/ui/Animator.java b/platform/platform-api/src/com/intellij/util/ui/Animator.java index 5d8a92bf72b2..f23281871aff 100644 --- a/platform/platform-api/src/com/intellij/util/ui/Animator.java +++ b/platform/platform-api/src/com/intellij/util/ui/Animator.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -106,14 +106,9 @@ public abstract class Animator implements Disposable { } private void animationDone() { + ApplicationManager.getApplication().assertIsDispatchThread(); stopTicker(); - - SwingUtilities.invokeLater(new Runnable() { - @Override - public void run() { - paintCycleEnd(); - } - }); + paintCycleEnd(); } private void stopTicker() {