From 1fd0da7d794ec0e728d34392c27298200ec98544 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Tue, 23 Aug 2016 08:02:08 +0800 Subject: [PATCH] fix drawing::erase --- source/gui/drawing.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/gui/drawing.cpp b/source/gui/drawing.cpp index 50626c76..2e6e2142 100644 --- a/source/gui/drawing.cpp +++ b/source/gui/drawing.cpp @@ -80,7 +80,9 @@ namespace nana void drawing::erase(diehard_t d) { - if(API::empty_window(handle_)) + //Fixed by Tumiz + //https://github.com/cnjinhao/nana/issues/153 + if(!API::empty_window(handle_)) restrict::get_drawer(handle_).erase(d); }