From 97ffed3d52c869ea5fd1cfc457698f9254d70668 Mon Sep 17 00:00:00 2001 From: qPCR4vir Date: Sun, 26 May 2024 16:37:10 +0200 Subject: [PATCH] init dpi in label::measure graphics substitute --- source/gui/widgets/label.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gui/widgets/label.cpp b/source/gui/widgets/label.cpp index 857a79c7c..1fb580b9d 100644 --- a/source/gui/widgets/label.cpp +++ b/source/gui/widgets/label.cpp @@ -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;