fix bug that font is missing when measure a zero-sized label
This commit is contained in:
parent
2c3d75c709
commit
b6028f8079
@ -891,7 +891,8 @@ namespace nana
|
||||
if(graph_ptr->empty())
|
||||
{
|
||||
graph_ptr = &substitute;
|
||||
graph_ptr->make({ 10, 10 });
|
||||
substitute.make({ 10, 10 });
|
||||
substitute.typeface(this->typeface());
|
||||
}
|
||||
|
||||
return impl->renderer.measure(*graph_ptr, limited, impl->text_align, impl->text_align_v);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user