Skip to content

Commit

Permalink
init dpi in label::measure graphics substitute
Browse files Browse the repository at this point in the history
  • Loading branch information
qPCR4vir committed May 26, 2024
1 parent 7f2192e commit 97ffed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/gui/widgets/label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ namespace nana
//First Check the graph of label
//Then take a substitute for graph when the graph of label is zero-sized.
nana::paint::graphics * graph_ptr = impl->graph;
nana::paint::graphics substitute;
nana::paint::graphics substitute(graph_ptr->get_dpi());
if(graph_ptr->empty())
{
graph_ptr = &substitute;
Expand Down

0 comments on commit 97ffed3

Please sign in to comment.