vcpkg/ports/graphviz/cpp-error.patch
2023-09-18 09:28:07 -07:00

13 lines
585 B
Diff

diff --git a/cmd/gvedit/mainwindow.cpp b/cmd/gvedit/mainwindow.cpp
--- a/cmd/gvedit/mainwindow.cpp
+++ b/cmd/gvedit/mainwindow.cpp
@@ -595,7 +595,7 @@ void CMainWindow::readSettings()
// first try new settings
{
QSettings settings("Graphviz", "gvedit");
- if (settings.contains("pos") and settings.contains("size")) {
+ if (settings.contains("pos") && settings.contains("size")) {
QPoint pos = settings.value("pos", QPoint(200, 200)).toPoint();
QSize size = settings.value("size", QSize(400, 400)).toSize();
move(pos);