Fixed a problem where the wx server would spam window repaints if there was no document open.
Fixed a problem where the wx server would spam window repaints if there was no document open.

staffan-einarsson/erledit