fix font_size issue that would cause crash

This commit is contained in:
Jinhao
2017-04-27 03:39:50 +08:00
parent 2ff8a1c729
commit 54537f35f5
2 changed files with 3 additions and 3 deletions

View File

@@ -238,7 +238,7 @@ namespace nana
double _m_font_size(nana::widgets::skeletons::fblock* fp) noexcept
{
while(fp->font_size == -1)
while(fp->font_size < 0)
{
fp = fp->parent;
if(nullptr == fp)
@@ -623,7 +623,7 @@ namespace nana
std::unique_ptr<measurer> msr_ptr{ nullptr };
align text_align{align::left};
align_v text_align_v;
align_v text_align_v{align_v::top};
class renderer renderer;