Skip to content

Commit

Permalink
Fix aspect ratio setting
Browse files Browse the repository at this point in the history
  • Loading branch information
kovzol committed Dec 31, 2024
1 parent ab2af5c commit e7b9e49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qt/visualizewindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ VisualizeWindow::VisualizeWindow(QWidget *parent, string input)
gvRenderData(gvc, g, "svg", &svg, &length);
gvFreeLayout(gvc, g);
agclose(g);
(gvFreeContext(gvc));
gvFreeContext(gvc);
string svg_s = string(svg);
tile->load(QByteArray::fromStdString(svg_s));
tile->renderer()->setAspectRatioMode(Qt::KeepAspectRatio);
}

0 comments on commit e7b9e49

Please sign in to comment.