fix a crash of API::root
This commit is contained in:
parent
b160e5e833
commit
cb4bb7d60e
@ -8,7 +8,7 @@
|
||||
* http://www.boost.org/LICENSE_1_0.txt)
|
||||
*
|
||||
* @file: nana/gui/place.cpp
|
||||
* @contributors: qPCR4vir
|
||||
* @contributors: Ariel Vina-Rodriguez
|
||||
*/
|
||||
|
||||
#include <cfloat>
|
||||
|
@ -442,7 +442,9 @@ namespace API
|
||||
native_window_type root(window wd)
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
return reinterpret_cast<basic_window*>(wd)->root;
|
||||
if(is_window(wd))
|
||||
return reinterpret_cast<basic_window*>(wd)->root;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
window root(native_window_type wd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user