[PRD-4670]  Added a flag to prevent a recursive attempt to call paintImmediately() while repainting.
Merge pull request #202 from mkambol/prd4670

[PRD-4670]  Added a flag to prevent a recursive attempt to call paintImmediately() while repainting.