Skip to content

Commit 97ffed3

Browse files
committed
init dpi in label::measure graphics substitute
1 parent 7f2192e commit 97ffed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/gui/widgets/label.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ namespace nana
959959
//First Check the graph of label
960960
//Then take a substitute for graph when the graph of label is zero-sized.
961961
nana::paint::graphics * graph_ptr = impl->graph;
962-
nana::paint::graphics substitute;
962+
nana::paint::graphics substitute(graph_ptr->get_dpi());
963963
if(graph_ptr->empty())
964964
{
965965
graph_ptr = &substitute;

0 commit comments

Comments
 (0)