fix drawing::erase

This commit is contained in:
Jinhao 2016-08-23 08:02:08 +08:00
parent c296d433f4
commit 1fd0da7d79

View File

@ -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);
}