Skip to content

Commit

Permalink
init dpi in content_extent temp_graph
Browse files Browse the repository at this point in the history
  • Loading branch information
qPCR4vir committed May 26, 2024
1 parent 429c1c8 commit 7f2192e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/gui/programming_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@ namespace api
if (is_window(wd) && wd->annex.content_measurer)
{
paint::graphics* graph = &wd->drawer.graphics;
paint::graphics temp_graph;
paint::graphics temp_graph(graph->get_dpi());
if (graph->empty())
{
temp_graph.make({ 1, 1 });
Expand Down

0 comments on commit 7f2192e

Please # to comment.